Created
August 20, 2015 10:03
-
-
Save spacekitteh/e32940595b98ec45ee45 to your computer and use it in GitHub Desktop.
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
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7102" }: | |
let | |
inherit (nixpkgs) pkgs; | |
ghc = pkgs.haskell.packages.${compiler}.ghcWithPackages (ps: with ps; | |
[mtl lens parsec QuickCheck ansi-wl-pprint text text-format alex | |
happy monad-logger hlint unordered-containers ekg haskeline | |
/*smartcheck*/ sbv tasty optparse-applicative configurator ]); | |
texlive = pkgs.texLiveFull; | |
emacs = let withGTK3 = true; in pkgs.emacsWithPackages (with | |
pkgs.emacsPackagesNg; [ghc-mod haskell-mode structured-haskell-mode]); | |
llvm = pkgs.llvm_35; | |
polly = pkgs.llvmPackages_35.polly; | |
git = pkgs.git; | |
z3 = pkgs.z3; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "haskell-env-1"; | |
buildInputs = [ghc | |
texlive | |
emacs | |
llvm | |
polly | |
git | |
z3 | |
]; | |
shellHook = "eval $(egrep ^export ${ghc}/bin/ghc)"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment