fradrive/stack.nix
2018-01-30 15:09:44 +01:00

14 lines
341 B
Nix

{ ghc, nixpkgs ? (import <nixpkgs> {}) }:
let
inherit (nixpkgs) haskell pkgs;
in haskell.lib.buildStackProject {
inherit ghc;
name = "stackenv";
buildInputs = (with pkgs;
[ postgresql zlib openldap cyrus_sasl.dev
]) ++ (with haskell.packages."ghc${builtins.replaceStrings ["."] [""] ghc.version}";
[ yesod-bin
]);
}