haskell generic-buider: nativeGhc should be a depsBuildBuild
It targets the build platform.
This commit is contained in:
parent
0f22d08e4f
commit
d21653f465
@ -179,7 +179,8 @@ let
|
||||
allPkgconfigDepends = pkgconfigDepends ++ libraryPkgconfigDepends ++ executablePkgconfigDepends ++
|
||||
optionals doCheck testPkgconfigDepends ++ optionals doBenchmark benchmarkPkgconfigDepends;
|
||||
|
||||
nativeBuildInputs = [ ghc nativeGhc removeReferencesTo ] ++ optional (allPkgconfigDepends != []) pkgconfig ++
|
||||
depsBuildBuild = [ nativeGhc ];
|
||||
nativeBuildInputs = [ ghc removeReferencesTo ] ++ optional (allPkgconfigDepends != []) pkgconfig ++
|
||||
setupHaskellDepends ++
|
||||
buildTools ++ libraryToolDepends ++ executableToolDepends;
|
||||
propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends ++ libraryFrameworkDepends;
|
||||
@ -242,7 +243,7 @@ stdenv.mkDerivation ({
|
||||
|
||||
inherit src;
|
||||
|
||||
inherit nativeBuildInputs;
|
||||
inherit depsBuildBuild nativeBuildInputs;
|
||||
buildInputs = otherBuildInputs ++ optionals (!hasActiveLibrary) propagatedBuildInputs;
|
||||
propagatedBuildInputs = optionals hasActiveLibrary propagatedBuildInputs;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user