Merge pull request #36401 from obsidiansystems/no-stdenv-cross-adapter

stdenv cross adapter: Get rid if `selfNativeBuildInput`
This commit is contained in:
John Ericson 2018-03-06 20:17:13 -05:00 committed by GitHub
commit 8f54d931cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,22 +75,11 @@ rec {
in stdenv // {
mkDerivation =
{ nativeBuildInputs ? []
, selfNativeBuildInput ? args.crossAttrs.selfNativeBuildInput or false
, ...
} @ args:
let
# *BuildInputs exists temporarily as another name for
# *HostInputs.
# The base stdenv already knows that nativeBuildInputs and
# buildInputs should be built with the usual gcc-wrapper
# And the same for propagatedBuildInputs.
nativeDrv = stdenv.mkDerivation args;
in
stdenv.mkDerivation (args // {
nativeBuildInputs = nativeBuildInputs
++ stdenv.lib.optional selfNativeBuildInput nativeDrv
# without proper `file` command, libtool sometimes fails
# to recognize 64-bit DLLs
++ stdenv.lib.optional (hostPlatform.config == "x86_64-w64-mingw32") pkgs.file