Expose a haskell package set, don't use inNixStore for shell

This commit is contained in:
John Ericson 2019-03-09 17:40:38 -05:00 committed by John Wiegley
parent 977d0de913
commit 50b1046536
2 changed files with 6 additions and 3 deletions

View File

@ -21,7 +21,6 @@
config.allowBroken = false;
}
, returnShellEnv ? pkgs.lib.inNixShell
, mkDerivation ? null
}:
@ -62,10 +61,13 @@ drv = haskellPackages.developPackage {
++ pkgs.stdenv.lib.optional doOptimize "--flags=optimize"
++ pkgs.stdenv.lib.optional doStrict "--ghc-options=-Werror";
passthru = { nixpkgs = pkgs; };
passthru = {
nixpkgs = pkgs;
inherit haskellPackages;
};
});
inherit returnShellEnv;
returnShellEnv = false;
};
in drv

1
shell.nix Normal file
View File

@ -0,0 +1 @@
{} @ attrs: (import ./. attrs).env