{ ghc, nixpkgs ? import ./nixpkgs.nix {} }: 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 gmp ]) ++ (with haskellPackages; [ yesod-bin happy alex ]); }