Merge pull request #66475 from kirelagin/stack-native-build-inputs
haskell.buildStackProject: Pass nativeBuildInputs
This commit is contained in:
commit
8a95dfd829
@ -2,6 +2,7 @@
|
|||||||
, cacert, stack, makeSetupHook, lib }@depArgs:
|
, cacert, stack, makeSetupHook, lib }@depArgs:
|
||||||
|
|
||||||
{ buildInputs ? []
|
{ buildInputs ? []
|
||||||
|
, nativeBuildInputs ? []
|
||||||
, extraArgs ? []
|
, extraArgs ? []
|
||||||
, LD_LIBRARY_PATH ? []
|
, LD_LIBRARY_PATH ? []
|
||||||
, ghc ? depArgs.ghc
|
, ghc ? depArgs.ghc
|
||||||
@ -22,7 +23,8 @@ in stdenv.mkDerivation (args // {
|
|||||||
buildInputs = buildInputs
|
buildInputs = buildInputs
|
||||||
++ lib.optional (stdenv.hostPlatform.libc == "glibc") glibcLocales;
|
++ lib.optional (stdenv.hostPlatform.libc == "glibc") glibcLocales;
|
||||||
|
|
||||||
nativeBuildInputs = [ ghc pkgconfig stack stackHook ];
|
nativeBuildInputs = nativeBuildInputs
|
||||||
|
++ [ ghc pkgconfig stack stackHook ];
|
||||||
|
|
||||||
STACK_PLATFORM_VARIANT = "nix";
|
STACK_PLATFORM_VARIANT = "nix";
|
||||||
STACK_IN_NIX_SHELL = 1;
|
STACK_IN_NIX_SHELL = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user