On 08/18/2014 02:43 PM, Tim Barbour wrote: > It seems that some versions of haskellPackages define ghcWithPackages, and > others do not. > > I have been following the approach described at > > > https://nixos.org/wiki/Haskell#Using_cabal_in_the_direct_installation_scenario > > under the heading "Local use via Nixpkgs config". > > If I use haskellPackages.ghcWithPackages with yi in the list of packages, I > get > > installing `haskell-env-ghc-7.6.3' > these derivations will be built: > /nix/store/3n7dzh6c1idpjbq27wzds0784i200kpi-haskell-env-ghc-7.6.3.drv > /nix/store/7kbz46k29gxgx67lxs2fymk3crkd0q1d-haskell-yi-ghc7.6.3-0.8.1.drv > ... > > 60% ( 9 / 15) in 'Yi.Command' > haddock: panic! (the 'impossible' happened) > (GHC version 7.6.3 for x86_64-unknown-linux): > mkWWcpr: not a product > <<details unavailable>> > > Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug > > builder for > `/nix/store/7kbz46k29gxgx67lxs2fymk3crkd0q1d-haskell-yi-ghc7.6.3-0.8.1.drv' > failed with exit code 1 > cannot build derivation > `/nix/store/3n7dzh6c1idpjbq27wzds0784i200kpi-haskell-env-ghc-7.6.3.drv': 1 > dependencies couldn't be built > error: build of > `/nix/store/3n7dzh6c1idpjbq27wzds0784i200kpi-haskell-env-ghc-7.6.3.drv' failed > > > which looks very similar to this bug: > > https://ghc.haskell.org/trac/ghc/ticket/9170 > > Since the bug is supposed to be fixed in ghc >= 7.8.2, I would like to use a > newer version of > haskellPackages. But if I try haskellPackages_ghc783.ghcWithPackages, I get >
Yes, known bug but not the one I'm going to fix. I think we should simply change the Yi expression to not build docs when using 7.6.3. > error: attribute `haskellPackages_ghc783.ghcWithPackages' missing > > OTOH, haskellPackages_ghc742.ghcWithPackages has no such error. > > It seems that some versions of haskellPackages define ghcWithPackages, and > others do not. Why ? What is the right way to specify a particular version of > ghc ? Or better still, avoid a given version of ghc ? haskellPackages_ghc783.ghcWithPackages should work just fine, I just tried it myself. Considering haskellPackages.ghcWithPackages gives you 7.6.3, it simply makes me think that you have an old set of packages. On nixos-unstable/nixpkgs-unstable, that would default to 7.8.3 and haskellPackages_ghc783.ghcWithPackages would work fine. That's what I use in my configuration.nix myself: I'm using nixos-unstable channel. > Tim > --- > GPG public key available at: > http://phasechangeit.com/~trb/gpg-key or > http://subkeys.pgp.net:11371 > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev > -- Mateusz K. _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
