Flakes: Difference between revisions

imported>Edrex
mention pure evaluation mode and the need for fetchurl to include sha256 arg
imported>Edrex
oops this isn't markdown
Line 217: Line 217:
Nix flakes run in pure evaluation mode, which is underdocumented. Some tips for now:
Nix flakes run in pure evaluation mode, which is underdocumented. Some tips for now:


- fetchurl and fetchtar [require a sha256 argument](https://github.com/NixOS/nix/blob/36c4d6f59247826dde32ad2e6b5a9471a9a1c911/src/libexpr/primops/fetchTree.cc#L201) to be considered pure.
* fetchurl and fetchtar [https://github.com/NixOS/nix/blob/36c4d6f59247826dde32ad2e6b5a9471a9a1c911/src/libexpr/primops/fetchTree.cc#L201 require a sha256 argument] to be considered pure.


== The nix flakes command ==
== The nix flakes command ==