> The way to go is to create a separate profile for every version of GHC > that you want to use like so:
> $ nix-env -p ~/ghc-6.10.4 -iA nixpkgs.haskellPackages_ghc6104.ghc > $ nix-env -p ~/ghc-7.6.3 -iA nixpkgs.haskellPackages_ghc762.ghc > Now, you can add both of those profiles into your command search path: > export PATH="$HOME/ghc-7.6.3/bin:$HOME/ghc-6.10.4/bin:$PATH" > Unversioned commands like "ghc" will refer to GHC 7.6.3. If you want to > run an older version of GHC, then you'll have to invoke it explicitly as > "ghc-6.10.4". Thanks, it worked. Can I add the above to Nix Wiki? By the way, maybe it's the right time to choose a license [1]. [1] http://nixos.org/wiki/Nix_Wiki:Copyrights
pgpWIY6Ayn8l8.pgp
Description: PGP signature
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev