[Nix-dev] Locally built haskell package not showing up in ghci

Carlo Nucera meditans at gmail.com
Mon Dec 1 18:59:02 CET 2014


Hi all,
a couple weeks ago I was trying to package the haskell music-suite for
nix. I stopped for a few weeks to let the mantainer fix some problems
with bounds on dependencies. However, when starting to package again
today, I found an unexpected problem.

Let's say I'm packaging up music-dynamics-literal, a very simple
package. I add the expression in top-level/haskellPackages, and create
the .nix file with cabal2nix in the right place.

Then I install the package with
code/nixpkgs $ nix-env -f . -iA haskellPackages.musicDynamicsLiteral

and the installation succeeds, but I'm not able to import
Music.Dynamics.Literal in ghci.

I also tried with the command
nix-shell -I nixpkgs=. -p haskellPackages.musicDynamicsLiteral
haskellPackages.ghc
to no avail.

My nix-env -q contains, among other things:
ghc-7.8.3-wrapper
haskell-music-dynamics-literal-ghc7.8.3-1.8-shared

And my ghc-pkg list is here: http://lpaste.net/115449
(I gather that there are broken packages, but I didn't solve the issue
nuking ~/.ghc or ~/.cabal)

Do you have any pointer?


More information about the nix-dev mailing list