Translations:Flakes/190/en: Difference between revisions
Appearance
Importing a new version from external source Tags: Mobile edit Mobile web edit |
(No difference)
|
Latest revision as of 12:07, 24 July 2025
};
}</nowiki>|name=flake.nix|lang=nix}}
In the example above, you can see the description, the input specified as a GitHub repository with a specific branch (here nixos/nixpkgs
on the nixos-unstable
branch), and an output that makes use of the input. The output simply specifies that the flake contains one package for the x86_64 architecture called hello
. Even if your flake's output wouldn't use its input (however, in practice, that is highly unlikely), the output still needs to be a Nix function.
Note: Flakes require you to specify its outputs for each architecture separately. For more information, read the related section below.