[Nix-dev] Bug(?) in derivation/hashing

Peter Hoeg peter at hoeg.com
Sat Aug 27 16:44:18 CEST 2016


One trick further to what Damien wrote:

> What I do: when I update a derivation, I update the name and I randomly
> change the sha256. nix-build or nix-env then downloads the new release
> tarball, compares the sha256s, fails, and tells me the actual sha256.

nix-prefetch-url -A package_name.src

This beats having to download the sources twice.

--
Regards,
Peter


More information about the nix-dev mailing list