Skip to content

Instantly share code, notes, and snippets.

@spacekitteh
Created August 20, 2015 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spacekitteh/e32940595b98ec45ee45 to your computer and use it in GitHub Desktop.
Save spacekitteh/e32940595b98ec45ee45 to your computer and use it in GitHub Desktop.
{ 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