Hm, thanks, this works indeed! But how is this different from `nix-shell '<nixpkgs>' -A haskell-ng.compiler.ghc763` (I probably missed something in `nix-shell` usage)?
Here is another strange thing I found: whenever I have something like ~~~~ testHaskell = haskell-ng.packages.ghc784.ghcWithPackages (hp: []); ~~~~ in my `config.nix`, it starts to build ghc: ~~~~ › nix-shell '<nixpkgs>' -A testHaskell these derivations will be built: /nix/store/s898z43nkjpzcizhcxcd71al9qd7plkh-ghc-7.8.4-src.tar.xz.drv these paths will be fetched (73.48 MiB download, 862.92 MiB unpacked): /nix/store/w4il8kp2jhmhmaxplx7i04y838k583mk-ghc-7.4.2-binary building path(s) ‘/nix/store/s1nidyhd42i61lfb19s77rnb4anip4w8-ghc-7.8.4-src.tar.xz’ ~~~~ But if I add any single package to the list in `ghcWithPackages` it is no longer building anything. On Fri Feb 13 2015 at 1:39:07 AM Peter Simons <sim...@cryp.to> wrote: > Hi Kirill, > > > How do I run a nix-shell with a specific version of ghc installed? > > $ nix-shell -p haskell-ng.compiler.ghc763 > > I hope this helps, > Peter > > _______________________________________________ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev