git.iko.soy/typeable/servant
on the-great-unification help sign in
20 lines 631 B history raw
1{ compiler ? "ghc901"
2, tutorial ? false
3, pkgs ? import ./nixpkgs.nix
4}:
5
6 with pkgs;
8 let
9 ghc = haskell.packages.${compiler}.ghcWithPackages (_: []);
10 docstuffs = python3.withPackages (ps: with ps; [ recommonmark sphinx sphinx_rtd_theme ]);
11 in
12 stdenv.mkDerivation {
13 name = "servant-dev";
14 buildInputs = [ ghc zlib python3 wget cabal-install postgresql openssl stack haskellPackages.hspec-discover ]
15 ++ (if tutorial then [docstuffs postgresql] else []);
16 shellHook = ''
17 eval $(grep export ${ghc}/bin/ghc)
18 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${zlib}/lib";
19 '';
20 }