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:
parent
67f9fd9e9f
commit
86311030cf
@ -362,7 +362,8 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
env = stdenv.mkDerivation {
|
env = stdenv.mkDerivation {
|
||||||
name = "interactive-${pname}-${version}-environment";
|
name = "interactive-${pname}-${version}-environment";
|
||||||
nativeBuildInputs = [ ghcEnv systemBuildInputs ];
|
buildInputs = systemBuildInputs;
|
||||||
|
nativeBuildInputs = [ ghcEnv ];
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
LOCALE_ARCHIVE = optionalString stdenv.isLinux "${glibcLocales}/lib/locale/locale-archive";
|
LOCALE_ARCHIVE = optionalString stdenv.isLinux "${glibcLocales}/lib/locale/locale-archive";
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user