Translations:Flakes/103/en: Difference between revisions
Appearance
Importing a new version from external source Tags: Mobile edit Mobile web edit |
Importing a new version from external source |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Running <code>nix build</code> will look in the <code>legacyPackages</code> and <code>packages</code> output attributes for the corresponding [[derivations|derivation]] and then your system architecture and build the default output. If you want to specify a build attribute in a flake repository, you can run <code>nix build .#<attr></code>. In the example above, if you wanted to build the <code>packages.x86_64-linux.hello</code> attribute, run: | |||
Latest revision as of 15:37, 3 March 2026
Running nix build will look in the legacyPackages and packages output attributes for the corresponding derivation and then your system architecture and build the default output. If you want to specify a build attribute in a flake repository, you can run nix build .#<attr>. In the example above, if you wanted to build the packages.x86_64-linux.hello attribute, run: