Last active
August 29, 2015 14:01
-
-
Save adinapoli/7bce04c56325d5bd9c47 to your computer and use it in GitHub Desktop.
Working shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import <nixpkgs> {}; | |
ghc = pkgs.ghc.ghc782; | |
hsEnv = pkgs.haskellPackages.ghcWithPackages (hsPkgs : ([ | |
hsPkgs.cabal | |
hsPkgs.happy | |
hsPkgs.alex | |
hsPkgs.cabalInstall_1_20_0_1 | |
])); | |
in pkgs.stdenv.mkDerivation rec { | |
name = "zurihac2014_ghc782"; | |
buildInputs = with pkgs; [ | |
binutils | |
coreutils | |
which | |
haskellPackages.hlint | |
ghc | |
hsEnv | |
]; | |
shellHook = '' | |
export GHC_NIX_ENV=1 | |
export PATH=$PATH:${builtins.getEnv "HOME"}/.cabal/bin | |
export PATH=$PATH:${builtins.getEnv "PWD"}/.cabal-sandbox/bin | |
''; | |
extraCmds = '' | |
export PATH=$PATH:${builtins.getEnv "HOME"}/.cabal/bin | |
export PATH=$PATH:${builtins.getEnv "PWD"}/.cabal-sandbox/bin | |
$(grep export ${hsEnv.outPath}/bin/ghc) | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment