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