This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/stack.nix
2019-07-31 13:23:58 +02:00

16 lines
376 B
Nix

{ 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
]);
}