haskell-generic-builder: include build-tool dependencies in shell environments

For a Haskell package "foo" the environment foo.env now contains the build tool
dependencies required for compiling the package in $PATH.

Fixes https://github.com/NixOS/cabal2nix/issues/331.
This commit is contained in:
Peter Simons 2018-02-09 19:47:39 +01:00
parent e44d763b1d
commit bd3379c443

View File

@ -384,7 +384,7 @@ stdenv.mkDerivation ({
env = stdenv.mkDerivation {
name = "interactive-${pname}-${version}-environment";
buildInputs = systemBuildInputs;
nativeBuildInputs = [ ghcEnv ];
nativeBuildInputs = [ ghcEnv ] ++ nativeBuildInputs;
LANG = "en_US.UTF-8";
LOCALE_ARCHIVE = optionalString stdenv.isLinux "${glibcLocales}/lib/locale/locale-archive";
shellHook = ''