Skip to content

Instantly share code, notes, and snippets.

@codedmart
Created June 2, 2015 20:31
Show Gist options
  • Select an option

  • Save codedmart/b42197a44cd2ce00dffd to your computer and use it in GitHub Desktop.

Select an option

Save codedmart/b42197a44cd2ce00dffd to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
stdenv = pkgs.stdenv;
in rec {
# GHC 7.6.3
ghc763 = stdenv.mkDerivation rec {
name = "ghc-763";
buildInputs = [
pkgs.haskell.packages.ghc763.ghc
pkgs.haskell.packages.ghc763.cabal-install
pkgs.haskell.packages.ghc763.cabal2nix
];
NIX_MYENV_NAME = "ghc763";
shellHook = "source ~/.bash_prompt";
};
# GHC 7.8.4
ghc784 = stdenv.mkDerivation rec {
name = "ghc-784";
buildInputs = [
pkgs.haskell.packages.ghc784.ghc
pkgs.haskell.packages.ghc784.cabal-install
pkgs.haskell.packages.ghc784.cabal2nix
];
NIX_MYENV_NAME = "ghc784";
shellHook = "source ~/.bash_prompt";
};
# GHC 7.10.1
ghc7101 = stdenv.mkDerivation rec {
name = "ghc-7101";
buildInputs = [
pkgs.haskell.packages.ghc7101.ghc
pkgs.haskell.packages.ghc7101.cabal-install
pkgs.haskell.packages.ghc7101.cabal2nix
];
NIX_MYENV_NAME = "ghc7101";
shellHook = "source ~/.bash_prompt";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment