haskell: set buildInputs in nix-shell env

systemBuildInputs goes in buildInputs (instead of nativeBuildInputs) so that
NIX_CFLAGS_* is set correctly and gcc works.
This commit is contained in:
Thomas Tuegel 2017-12-18 13:49:18 -06:00
parent 67f9fd9e9f
commit 86311030cf
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

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