15 lines
341 B
Nix
15 lines
341 B
Nix
{ ghc, nixpkgs ? import ./nixpkgs.nix }:
|
|
|
|
let
|
|
# haskellPackages = import ./stackage.nix { inherit nixpkgs; };
|
|
haskellPackages = pkgs.haskellPackages;
|
|
inherit (nixpkgs {}) pkgs;
|
|
in pkgs.haskell.lib.buildStackProject {
|
|
inherit ghc;
|
|
inherit (haskellPackages) stack;
|
|
name = "stackenv";
|
|
buildInputs = with pkgs;
|
|
[ zlib
|
|
];
|
|
}
|