cross stdenv: No more native-fishing hack.
The comment says it was put there for pkgconfig, but now pkgconfig has been dealt with.
This commit is contained in:
parent
f8a18cd4cf
commit
7a733ceda4
@ -88,20 +88,9 @@ rec {
|
|||||||
# buildInputs should be built with the usual gcc-wrapper
|
# buildInputs should be built with the usual gcc-wrapper
|
||||||
# And the same for propagatedBuildInputs.
|
# And the same for propagatedBuildInputs.
|
||||||
nativeDrv = stdenv.mkDerivation args;
|
nativeDrv = stdenv.mkDerivation args;
|
||||||
|
|
||||||
# Temporary expression until the cross_renaming, to handle the
|
|
||||||
# case of pkgconfig given as buildInput, but to be used as
|
|
||||||
# nativeBuildInput.
|
|
||||||
hostAsNativeDrv = drv:
|
|
||||||
builtins.unsafeDiscardStringContext drv.nativeDrv.drvPath
|
|
||||||
== builtins.unsafeDiscardStringContext drv.crossDrv.drvPath;
|
|
||||||
buildInputsNotNull = stdenv.lib.filter
|
|
||||||
(drv: builtins.isAttrs drv && drv ? nativeDrv) buildInputs;
|
|
||||||
nativeInputsFromBuildInputs = stdenv.lib.filter hostAsNativeDrv buildInputsNotNull;
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation (args // {
|
stdenv.mkDerivation (args // {
|
||||||
nativeBuildInputs = nativeBuildInputs
|
nativeBuildInputs = nativeBuildInputs
|
||||||
++ nativeInputsFromBuildInputs
|
|
||||||
++ stdenv.lib.optional selfNativeBuildInput nativeDrv
|
++ stdenv.lib.optional selfNativeBuildInput nativeDrv
|
||||||
# without proper `file` command, libtool sometimes fails
|
# without proper `file` command, libtool sometimes fails
|
||||||
# to recognize 64-bit DLLs
|
# to recognize 64-bit DLLs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user