[Nix-dev] Re: cabal not working well out the box

Paul van der Walt paul at denknerd.nl
Tue Dec 28 17:27:53 CET 2010


Hi Marc,

On Tue, Dec 28, 2010 at 16:38:27 +0100, quoth Marc Weber:
> Some confusion may arise if you install ghc-X and cabal which was
> compiled by ghc-Y into your environment. However its not important to
> me.

Hm, indeed.

> As alternative you could create a collection containing cabal and ghc this way:
> http://wiki.nixos.org/wiki/Howto_keep_multiple_packages_up_to_date_at_once

I looked at that, thanks, but that wouldn't help anyone else,
whereas I hoped this might be benificial to others. I could, of
course, submit the collection, but that would have a name which
would be non-obvious to a newcomer, at least that was my
thinking...

> Except that your patch looks fine (unless you prefer Peters way:
> wrapping cabal so that binutils is added to PATH). Maybe its the better
> solution because it has no impact on other applications.
> Probably having binutils in your env doesn't hurt much so I'm not sure
> which solution I'd prefer.
> You would do this using "wrapProgram" passing makeWrapper to
> buildInputs.

Ah yes, I didn't make a wrapper as I didn't know how. Maybe I'll
do this instead. It's probably the Right Way. Or is it?

Paul

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20101228/f9b8dfb4/attachment.bin 


More information about the nix-dev mailing list