[Nix-dev] nixpkgs haskell system got into inconsistent state broken
Thomas Hunger
tehunger at gmail.com
Mon Sep 21 13:19:41 CEST 2015
It's possible you hit the infamous non-deterministic package hash
generation [1] for which Peter collected data recently [2]. AFAICT the only
solution is to remove and rebuild or refetch all haskell packages.
This bug has high priority for GHC 8 so I hope it'll eventually go away.
[1]
https://ghc.haskell.org/trac/ghc/ticket/4012
[2]
http://lists.science.uu.nl/pipermail/nix-dev/2015-June/017405.html
On 21 September 2015 at 10:41, Miguel Negrão <
miguel.negrao-lists at friendlyvirus.org> wrote:
> Hi
>
> This week I encountered a situation where when I tried to build one of my
> own packages which was working fine before, it would fail claiming that
> every single Haskell package it needed was missing:
>
> http://pastebin.com/agqw9dn2
> http://pastebin.com/Vyqc5U3e
>
> I had not changed anything or installed anything in nix for quite a while,
> the only thing I can think that could have caused this was that my
> filesystem had died (btrfs) and I had to restore from backup the whole of
> /.
> I have not used binary cache to build any of the haskell packages, they
> were
> built from source.
>
> Is it possible that the restore of / via rsync could have caused this ?
>
> In the meantime I had did a rm -r /nix and installed everything again and
> my
> system is working again, exactly as before this issue (I had everything
> specified in my config.nix), which is a testament to how easy it is to
> rebuild a system with nix if you have a declarative description of your
> packages.
>
> Thanks,
> Miguel
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150921/c5e6574f/attachment.html
More information about the nix-dev
mailing list