[Nix-dev] A Journey into the Haskell NG infrastructure: Part I

Kirill Elagin kirelagin at gmail.com
Thu Feb 12 23:10:15 CET 2015


How do I run a nix-shell with a specific version of ghc installed?

I think I tried everything that came to my mind:

~~~~
› nix-shell '<nixpkgs>' -A haskell-ng.compiler.ghc763

[nix-shell:~/tmp]$ which ghc
/nix/store/mgs1il4qvvd70s50p2v8j2pxm50k7ias-ghc-7.0.4-binary/bin/ghc
~~~~

hmmm…

~~~~
› nix-shell '<nixpkgs>' -A haskell-ng.packages.ghc784.ghc
these paths will be fetched (73.48 MiB download, 862.92 MiB unpacked):
  /nix/store/w4il8kp2jhmhmaxplx7i04y838k583mk-ghc-7.4.2-binary
fetching path
‘/nix/store/w4il8kp2jhmhmaxplx7i04y838k583mk-ghc-7.4.2-binary’...
~~~~

It looks like it is trying to bootstrap ghc or something…
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150212/6fc9c9c1/attachment.html 


More information about the nix-dev mailing list