16 lines
365 B
Nix
16 lines
365 B
Nix
{ ghc, nixpkgs ? import <nixpkgs> }:
|
|
|
|
let
|
|
haskellPackages = import ./stackage.nix { inherit nixpkgs; };
|
|
inherit (nixpkgs {}) pkgs;
|
|
in pkgs.haskell.lib.buildStackProject {
|
|
inherit ghc;
|
|
inherit (haskellPackages) stack;
|
|
name = "stackenv";
|
|
buildInputs = (with pkgs;
|
|
[ postgresql zlib libsodium
|
|
]) ++ (with haskellPackages;
|
|
[ yesod-bin
|
|
]);
|
|
}
|