[Nix-dev] Mixing cabal and Nix? Or: Best way to install development versions of Haskell packages?

Aristid Breitkreuz aristidb at googlemail.com
Fri Mar 9 15:58:28 CET 2012


OK, I got it to work (or so it seems right now). Essentially, I had to pass
--force to ghc-pkg. But because there is no flag for cabal install to pass
that, I did this:

$ runghc Setup.hs copy
$ runghc Setup.hs register --gen-pkg-conf=Agda.conf
$ ghc-pkg --user register Agda.conf

Is there a better way? :)


Aristid

2012/3/9 Peter Simons <simons at cryp.to>

> Hi Aristid,
>
>  > Am I rightly suspecting that it isn't possible to mix cabal and Agda,
> even
>  > just for development versions of some packages?
>
> Cabal and Nix work together just fine. What doesn't work, though, is mixing
> Haskell software that's been installed via Nix and Haskell software that's
> been
> installed by other means, say the native package manager of your host OS.
> Maybe
> that is what you've been doing?
>
>  > $ cabal install --disable-documentation
>
> Where did you get that Cabal binary from? And what compiler is it using
> for the
> build? (If in doubt, please run the command with '-v' to enable more
> verbose
> output and post the results here.)
>
> You should make sure that the 'ghc' command in your $PATH is the binary
> provided by the Nix package "ghc-7.4.1-wrapper". Any other binary is not
> going
> to find any of the Haskell packages that you installed via Nix.
>
> Take care,
> Peter
>
> _______________________________________________
> 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/20120309/1d85942b/attachment.html 


More information about the nix-dev mailing list