Skip to content

Instantly share code, notes, and snippets.

@codedmart
Created June 3, 2015 13:22
Show Gist options
  • Select an option

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

Select an option

Save codedmart/69e9050a00b7210af6ad to your computer and use it in GitHub Desktop.
{
packageOverrides = super:
let
self = super.pkgs;
ghc784Package = self.haskell.packages.ghc784.ghcWithPackages (
haskellPackages: with haskellPackages; [
cabal-install
cabal2nix
]
);
in
{
# GHC 7.6.3
ghc763 = self.haskell.packages.ghc763.ghcWithPackages (
haskellPackages: with haskellPackages; [
cabal-install
cabal2nix
]
);
ghc784 = self.stdenv.mkDerivation {
name = "ghc784";
src = ./.;
NIX_MYENV_NAME = "ghc784";
buildInputs = [ ghc784H ];
shellHook = "source ~/.bash_prompt";
};
# GHC 7.10.1
ghc7101 = self.haskell.packages.ghc7101.ghcWithPackages (
haskellPackages: with haskellPackages; [
cabal-install
cabal2nix
]
);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment