[Nix-dev] fixing ghc-pkg update

roconnor at theorem.ca roconnor at theorem.ca
Fri Jan 7 13:52:34 CET 2011


On Fri, 7 Jan 2011, Marc Weber wrote:

>> I don't know the answer to that, but we should strive to make cabal work
>
> Do you mind talking about the use case which doesn't work for you
> currently?

Specificall if you use nix-env -i haskellPackageA to install some haskell 
package, and then you download a tar file for haskellPacakgeB (maybe 
because it isn't packaged in nix) which depends on haskellPackageA.  You 
extract haskellPackageB and do

runhaskell Setup.hs configure --user
runhaskell Setup.hs build
runhaskell Setup.hs install --user

Then this last install step will fail due to this bug in ghc-pkg.

(Actually I'm not entirely sure it is a bug in ghc-pkg.  It could be 
intensional that --user cannot depend on various --package-conf=, though I 
don't really see why that would be the case.)

-- 
Russell O'Connor                                      <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''



More information about the nix-dev mailing list