[Nix-dev] haskellngPackages.cabal-instal wont install after "haskell-generic-builder: gratuitous ..."

Kirill Elagin kirelagin at gmail.com
Sat Apr 18 14:23:20 CEST 2015


I’m not sure what it does exactly, but judging from the description in the
man page it just calculates the hash and checks that it matches the one in
the nix-store’s directory name. So in this case in won’t help as the
problem is in the building process, and not in corruption of files in the
local store.

On Fri, Apr 17, 2015 at 7:26 PM James Cook <james.cook at utoronto.ca> wrote:

> Isn't this what nix-env --repair is for? I haven't used it, but that's
> what I would try first.
>
> James
>
> On 17 April 2015 at 07:51, Kirill Elagin <kirelagin at gmail.com> wrote:
> > I don’t understand much about those GHC package IDs issues but I guess it
> > might be the cause here.
> > The typical solution is to do:
> >
> > ~~~~
> > $ nix-store --delete /nix/store/*-ghc-7.8.4
> > ~~~~
> >
> > On Fri, Apr 17, 2015 at 5:44 PM Mads Lindstrøm <
> mads.lindstroem at gmail.com>
> > wrote:
> >>
> >> Hi all,
> >>
> >> When I run:
> >>
> >> > nix-env -f nixpkgs-i -A haskellngPackages.cabal-install
> >>
> >> with nixpkgs at or newer than the commit:
> >>
> >> "commit 945269a48fa8b91024e18a72b485797eeca308ee
> >> Author: Peter Simons <simons at cryp.to>
> >> Date:   Wed Apr 1 14:02:46 2015 +0200
> >>
> >>     haskell-generic-builder: gratuitous cosmetic change to trigger a
> >> complete re-build
> >>
> >>     hydra.nixos.org serves broken binaries because of our favorite
> >> non-deterministic
> >>     package IDs in GHC bug. :-( Re-building everything from scratch
> seems
> >> like the
> >>     easiest way to recover."
> >>
> >> I get an error:
> >> ...
> >> Dependency ansi-terminal >=0.4.0 && <0.7: using ansi-terminal-0.6.2.1
> >> Dependency base >=3 && <5: using base-4.7.0.2
> >> Setup: The following installed packages are broken because other
> packages
> >> they
> >> depend on are missing. These broken packages must be rebuilt before they
> >> can
> >> be used.
> >> package ansi-terminal-0.6.2.1 is broken due to missing package
> >> base-4.7.0.2-cb23b5265b6e147094c0cd9ac819acb1,
> >> unix-2.7.0.1-d7de2c9293605f58486b3752d772cdb6
> >> builder for
> >>
> /nix/store/f6jkyn8ccsf09i9648xq6jm4gs5p6s2r-haskell-ansi-wl-pprint-0.6.7.2.drv
> >> failed with exit code 1
> >> cannot build derivation
> >>
> /nix/store/3whjh20qdadfw0n07bhna0fjlmq78jmc-haskell-test-framework-0.8.1.1.drv:
> >> 1 dependencies couldn't be built
> >> cannot build derivation
> >>
> /nix/store/wpyb7dlbi3a6glyv2npib69330mylfsz-haskell-network-2.6.0.2.drv: 1
> >> dependencies couldn't be built
> >> cannot build derivation
> >> /nix/store/p0agds79wrzbisxihvyvpfzfcs3h1vik-haskell-parsec-3.1.9.drv: 1
> >> dependencies couldn't be built
> >> cannot build derivation
> >> /nix/store/kswm7z4bpsi7rp9pws9q7mcdzhngg62y-cabal-install-1.22.2.0.drv:
> 1
> >> dependencies couldn't be built
> >> error: build of
> >> /nix/store/kswm7z4bpsi7rp9pws9q7mcdzhngg62y-cabal-install-1.22.2.0.drv
> >> failed
> >>
> >>
> >> What do I do to fix this?
> >>
> >> cat ~/.nixpkgs/config.nix:
> >>
> >>  { allowUnfree = true; allowBroken = true; }
> >>
> >>
> >>
> >> Best regards,
> >>
> >> Mads Lindstrøm
> >> _______________________________________________
> >> nix-dev mailing list
> >> nix-dev at lists.science.uu.nl
> >> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >
> >
> > _______________________________________________
> > 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/20150418/01c8907a/attachment.html 


More information about the nix-dev mailing list