this post was submitted on 25 Oct 2023
5 points (100.0% liked)
nixos
1262 readers
2 users here now
All about NixOS - https://nixos.org/
founded 4 years ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Just fyi regarding point (7), there is
lib.fakeHash
for your convenience.Actually now you can just leave it empty and it'll use a hash of all zeroes.
That is how
fakeHash
is defined, its just a bit more clear whats intended.Right, but why would you need to show what's intended for something that you would not commit anyway? My point is if I add or update a package and don't know the hash for a particular derivation I need to put something temporarily to let nix fail and show me the hash it found out. And there I have the choice between typing something like
lib.fakeHash
or just""
, of which imho the latter is way easier.