From 86311030cfe6618df8f33a9c4d92a8126de65e35 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Mon, 18 Dec 2017 13:49:18 -0600 Subject: haskell: set buildInputs in nix-shell env systemBuildInputs goes in buildInputs (instead of nativeBuildInputs) so that NIX_CFLAGS_* is set correctly and gcc works. --- pkgs/development/haskell-modules/generic-builder.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 3e82003be43c..3182b4846c0f 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -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 = '' -- cgit 1.4.1