[Nix-dev] Haskell-env (via nix-shell) - am I doing this right?

Matthias Beyer mail at beyermatthias.de
Mon May 25 12:38:56 CEST 2015


Re-Send to ML:


On 24-05-2015 21:41:47, Matthias Beyer wrote:
> Hi Peter,
> 
> On 24-05-2015 17:09:21, Peter Simons wrote:
> > The following message is a courtesy copy of an article
> > that has been posted to gmane.linux.distributions.nixos as well.
> > 
> > Hi Matthias,
> > 
> >  >     $ cabal build
> >  >     Building ratehs-0.1...
> >  >     Preprocessing executable 'ratehs' for ratehs-0.1...
> >  >     <command line>: cannot satisfy -package-id
> >  >     snap-0.14.0.2-ef658c66823be8387d049aa89445f690:
> >  >     snap-0.14.0.2-ef658c66823be8387d049aa89445f690 is unusable due
> >  >     to missing or recursive dependencies:
> >  >     clientsession-0.9.1.1-f379c9ed2e350715ba6cdc20d73894b3
> >  >     (use -v for more information)
> >  >
> >  > Do you have an idea how I can fix this?
> > 
> > this issue is described in https://github.com/NixOS/nixpkgs/issues/7792.
> > Instructions how to recover from this problem are in this thread. The
> > short version is: garbage collect "haskell-clientsession" and all its
> > dependents, then download those packages from scratch (or build them
> > locally with --option build-use-substitutes false. Anyway, the ticket
> > has more information on this subject.
> 
> Thanks for posting this. Unfortunately I don't understand how to
> 
>     garbage collect "haskell-clientsession" and all its dependents
> 
> How to do that? I've read the linked issue but I don't get any smarter
> by reading it!
> 
> I just tried to nix-collect-garbage and after that re-building
> everything by simply doing nix-shell and entering the environment, but
> the error still happens, so I guess that's not the way how to do it,
> right?

I did 

    "nix-store --delete" on the store path of haskell-clientsession.

as Peter suggested in a private mail then.

But my problem is still:

I ran

    for n in $(find /nix/store -name "*haskell-clientsession*" -maxdepth 1); do nix-store --delete $n; done

but it still tells me:

    finding garbage collector roots...  error: cannot delete path
    ‘/nix/store/pqj35vwax89ljdhcca02a330ii4zzhiw-haskell-clientsession-0.9.1.1.drv’
    since it is still alive
    0 store paths deleted, 0.00 MiB freed

Can you tell how to fix this?

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150525/9a3f8891/attachment.bin 


More information about the nix-dev mailing list