{ ghc, nixpkgs ? (import {}) }: 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 ]); }