[Nix-dev] Checksum errors trying to install ghc-6.6.1

Sean E. Russell nix at ser1.net
Sat Jun 2 19:30:21 CEST 2007


On Saturday 02 June 2007 13:17, you wrote:
> On Sat, 2007-06-02 at 19:08 +0200, Armijn Hemel wrote:
> > You can fix this by replacing the hash sum with the hash sum that was
> > expected in the Nix expression for GHC.
>
> Just checked the fix into subversion. The two tarballs had a 807 byte
> size difference, which could be caused by using some other packaging
> options. According to diff the contents are the same.

Does 'nix-env -u' cache any information about the hashcode?  I did 
change the hashcode directly in the recipe, but subsequent install 
attempts kept using the old hash code.  What is the purpose of the 
*.drv files?

For example:

[root at bean:/]$ grep md5 \
/etc/nixos/nixpkgs/pkgs/development/compilers/ghc-6.6.1/default.nix
      md5 = "ba9f4aec2fde5ff1e1548ae69b78aeb0";
      md5 = "43a26b81608b206c056adc3032f7da2a";
[root at bean:/]$ nix-env -u '*'
	<SNIP>
upgrading `ghc-6.6' to `ghc-6.6.1'
	<SNIP>
building path(s) `/nix/store/xnrgm2k9ggms430h7fi3mv2kmp2d83qw-ghc-6.6.1-src.tar.bz2'
downloading /nix/store/xnrgm2k9ggms430h7fi3mv2kmp2d83qw-ghc-6.6.1-src.tar.bz2 from http://www.haskell.org/ghc/dist/6.6.1/ghc-6.6.1-src.tar.bz2
	<SNIP>
output path `/nix/store/xnrgm2k9ggms430h7fi3mv2kmp2d83qw-ghc-6.6.1-src.tar.bz2' should have md5 hash `dea271503463bd28c27f25ab90998633', instead has `ba9f4aec2fde5ff1e1548ae69b78aeb0'
cannot build derivation `/nix/store/81bcvxhd68zz6ybfbvrh0fbg5qfxb9ic-ghc-6.6.1.drv': 1 inputs could not be realised
error: build of `/nix/store/81bcvxhd68zz6ybfbvrh0fbg5qfxb9ic-ghc-6.6.1.drv' failed

-- 
### SER   
### Deutsch|Esperanto|Francaise|Linux|XML|Java|Ruby|Aikido|Iaido
### http://www.ser1.net  jabber.com:ser  ICQ:83578737 
### GPG: http://www.ser1.net/Security/ser_public.gpg



More information about the nix-dev mailing list