I did better, to streamline the problems, I created a dedicated vm to keep things clean. So here is what I did:
1) I followed this guide http://fluffynukeit.com/series/haskell-nixos/ to establish ~/nixpkgs as my base for packages, adding this in my .zshrc: > rm -r ~/.nix-defexpr > ln -s ~/nixpkgs ~/.nix-defexpr > export NIX_PATH=/home/carlo:nixos-config=/etc/nixos/configuration.nix; 2) I installed ghc, cabalInstall and cabal2nix in my environment, with: > nix-env -iA haskellPackages.ghc > etc.. 3) I packaged software as usual in that guide. Now, look at the image of dependencies in "https://hackage.haskell.org/package/music-suite". I installed without problems the packages music-pitch-literal and music-dynamics-literal, whose dependencies are all already packaged. I tested them in ghci, all fine. But when I went on packaging lilypond, it created a problem in my configuration, so that now ghc-pkg check reports errors in installed packages. Also, lilypond does not show up when I try to import it from ghci. Could you help me to point out the errors I'm doing here? 2014-12-02 18:54 GMT+01:00 Benno Fünfstück <[email protected]>: > Hi Carlo, > > can you try running nix-shell with --pure as an addiitional argument? If you > don't pass --pure, nix-shell might pick up packages from your user > environment. > > Benno > > Carlo Nucera <[email protected]> schrieb am Mon Dec 01 2014 at 18:59:09: >> >> 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? >> _______________________________________________ >> nix-dev mailing list >> [email protected] >> http://lists.science.uu.nl/mailman/listinfo/nix-dev _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
