[Nix-dev] Help with ghc errors after nix-channel --update

Benno Fünfstück benno.fuenfstueck at gmail.com
Sat Dec 6 17:36:19 CET 2014


Hello,

I think the problem occurs because in recent nixpkgs hashable was upgraded,
but hashable is a GHC core package and thus cannot be replaced. I guess
that previously the version provided by GHC was newer than the nixpkgs one,
so it shadowed the nixpkgs version. Now, with the upgraded version, the
nixpkgs one is picked instead of the GHC provided one.

Unfortunately, I don't have access to a NixOS system right now so I can't
test and fix it myself. The correct fix, if my theory is true, would be to
set hashable to null in haskellPackages for GHC 7.8 and later. We already
do that for some other packages (binary for example).

--
Benno

Carlo Nucera <meditans at gmail.com> schrieb am Sa., 6. Dez. 2014 17:15:

> Hi all. I managed to create a nice setup for haskell
> development. However, I did:
>
> $ sudo nix-channel --update
> $ sudo nixos-channel rebuild
>
> After updating, my haskell installation is broken, ghc-pkg check is
> full of errors, and the packages I installed no longer load in ghci.
> I could rollback but there are new packages I need which are in the
> recent nixos-unstable commits.
>
> So, here is the setup I use:
>
> $ sudo nix-channel --list
> nixos http://nixos.org/channels/nixos-unstable
>
> $ nix-channel --list
> # no output
>
> My global nixos config:
> https://github.com/meditans/settings/blob/master/nixos/configuration.nix
>
> My ~/.nix-pkgs/config.nix:
> https://github.com/meditans/settings/blob/master/nix-local/config.nix
>
> $ ghc-pkg list
> output: http://lpaste.net/115809
>
> $ ghc-pkg check
> output: http://lpaste.net/115810
>
> $ nix-env -q
>
> cabal-install-1.20.0.3
> cabal2nix-1.72
> ghc-7.8.3-wrapper
> haskell-abcnotation-ghc7.8.3-1.8-shared
> haskell-applicative-numbers-ghc7.8.3-0.1.3-shared
> haskell-data-interval-ghc7.8.3-1.1.1-shared
> haskell-extended-reals-ghc7.8.3-0.1.0.0-shared
> haskell-lattices-ghc7.8.3-1.2.1.1-shared
> haskell-lilypond-ghc7.8.3-1.8-shared
> haskell-music-dynamics-literal-ghc7.8.3-1.8-shared
> haskell-music-pitch-literal-ghc7.8.3-1.8-shared
> haskell-musicxml2-ghc7.8.3-1.8-shared
> haskell-positive-ghc7.8.3-0.4-shared
> haskell-prettify-ghc7.8.3-1.0-shared
> haskell-reverse-apply-ghc7.8.3-2.0.1-shared
> haskell-ty-ghc7.8.3-0.1.6-shared
> haskell-type-unary-ghc7.8.3-0.2.16-shared
>
> $ ghci
> GHCi, version 7.8.3: http://www.haskell.org/ghc/  :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer-gmp ... linking ... done.
> Loading package base ... linking ... done.
> Prelude> import Music.Abc
>
> <no location info>:
>     Could not find module ‘Music.Abc’
>     It is not a module in the current program, or in any known package.
>
> It's in this way for all the packages I'm trying to install.
> Any suggestion on what to do?
>
> Carlo Nucera
> _______________________________________________
> 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/20141206/4f0b66b3/attachment.html 


More information about the nix-dev mailing list