Flakes: Difference between revisions
imported>MakoConstruct added unstable reference manual for flakes command to See Also |
imported>MakoConstruct Explained `outputs`, explained what `self` is |
||
| Line 121: | Line 121: | ||
=== Output schema === | === Output schema === | ||
Once the inputs are resolved, they're passed to the function `outputs` along with with `self`, which is the directory of this flake in the store. `outputs` returns the outputs of the flake, according to the following schema. | |||
This is described in the nix package manager [https://github.com/NixOS/nix/blob/master/src/nix/flake.cc src/nix/flake.cc] in CmdFlakeCheck. | This is described in the nix package manager [https://github.com/NixOS/nix/blob/master/src/nix/flake.cc src/nix/flake.cc] in CmdFlakeCheck. | ||