[Nix-dev] A Journey into the Haskell NG infrastructure: Part I
Kirill Elagin
kirelagin at gmail.com
Thu Feb 12 23:45:25 CET 2015
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 <simons at 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 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/20150212/cbaae52c/attachment.html
More information about the nix-dev
mailing list