git.iko.soy/typeable/servant
on v0.14.1 help sign in
21 lines 514 B history raw
1{ pkgs ? import <nixpkgs> {}
2, compiler ? "ghc822"
3, tutorial ? false
4}:
6with pkgs;
8let
9 ghc = haskell.packages.${compiler}.ghcWithPackages (_: []);
10 docstuffs = python3.withPackages (ps: with ps; [ recommonmark sphinx sphinx_rtd_theme ]);
11in
13stdenv.mkDerivation {
14 name = "servant-dev";
15 buildInputs = [ ghc zlib python3 wget ]
16 ++ (if tutorial then [docstuffs postgresql] else []);
17 shellHook = ''
18 eval $(grep export ${ghc}/bin/ghc)
19 export LD_LIBRARY_PATH="${zlib}/lib";
20 '';