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

Armijn Hemel armijn at uulug.nl
Sat Jun 2 15:01:34 CEST 2007


On Sat, 2007-06-02 at 08:17 -0400, Sean E. Russell wrote:
> I'm trying to upgrade a nixos chroot environment, and it is blocking on 
> ghc-6.6.1 because of a checksum failure.
> 
> [root at bean:/]$ nix-env -u '*'
> 	<... a bunch of output cut ...>
> 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
> 
> Is there a way to tell nix-env to ignore the md5 sum check?

There is, but it is not the right thing to do. A did a short
investigation. The Nix expression file for ghc-6.6.1 was added on May 6
by Andres. It seems that the GHC tarball was last changed on May 26. So,
the file (and thus the checksum) was changed, but the name wasn't, which
is why this "error" occurs. Time to blame the GHC people for not having
proper release management :-P

armijn

-- 
-------------------------------------------------------------------------
armijn at uulug.nl | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group
-------------------------------------------------------------------------




More information about the nix-dev mailing list