Flakes: Difference between revisions
add "flakes aren't real" blog post, which people seem to find helpful |
added more to the inputs schema section; newcomers will not look through external documentation for flakes. Tags: Mobile edit Mobile web edit |
||
| Line 87: | Line 87: | ||
[https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html#flake-inputs The nix flake inputs manual]. | [https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html#flake-inputs The nix flake inputs manual]. | ||
[https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html#flake-references The nix flake references manual]. | [https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html#flake-references The nix flake references manual]. | ||
The inputs attribute defines the dependencies of the flake. For example, nixpkgs has to be defined as a dependency for a system flake in order for the system to build properly. | |||
Nixpkgs can be defined using the following code: | |||
<code>inputs.nixpkgs.url = "nixpkgs/<branch name>";</code> | |||
=== Output schema === | === Output schema === | ||