Re:One Week of NixOS
by danieldk on Wednesday November 11, 2020 @06:16AM
(#25057403)
and if you think you can just build the package and get the correct hash from the error message, you're mistaken
Actually, you can. In any place a SHA256 hash is required, you can put *lib.fakeSha256" (which is an all-zeros hash) and the build will fail and Nix will tell you what the correct hash is.
Actually, you can. In any place a SHA256 hash is required, you can put *lib.fakeSha256" (which is an all-zeros hash) and the build will fail and Nix will tell you what the correct hash is.