[Nix-dev] Using several versions of GHC at once

Ludovic Courtès ludo at gnu.org
Wed Jun 12 10:06:28 CEST 2013


Hi!

Nikita Karetnikov <nikita at karetnikov.org> skribis:

> I'm trying to install several versions of GHC.  There are two
> problems:
>
> 1. According to this page [1], it should be possible to use multiple
>    versions at once.  But 'nix-env -iA' always replaces the previous
>    version.  For example, if I run the following commands:
>
>    # nix-env -iA nixpkgs.haskellPackages_ghc6104.ghc
>    # nix-env -iA nixpkgs.haskellPackages_ghc762.ghc
>
>    my profile will only contain 'ghc-7.6.2', not both.

Yes.  I believe it’s not possible to install both at the same time,
because nix-env will only keep one thing called ‘ghc’.

[...]

>    /nix/store/f2rwkyd9yb6s5cdvmy7ydh9yd5bqd1hi-stdenv/setup: ./configure: /bin/sh: bad interpreter: No such file or directory

[...]

>    build-chroot-dirs = /dev /proc /bin

Could it be that /bin/sh is a symlink whose target is not in the chroot?

Ludo’.



More information about the nix-dev mailing list