Merge pull request #126852 from NixOS/backport-126844-to-release-21.05

[Backport release-21.05] openssl: fix Darwin cross infinite recursion
This commit is contained in:
Domen Kožar 2021-06-15 12:00:16 +02:00 committed by GitHub
commit 6c784b44c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,10 @@ let
outputs = [ "bin" "dev" "out" "man" ] ++ optional withDocs "doc";
setOutputFlags = false;
separateDebugInfo = !(stdenv.hostPlatform.useLLVM or false) && stdenv.cc.isGNU;
separateDebugInfo =
!stdenv.hostPlatform.isDarwin &&
!(stdenv.hostPlatform.useLLVM or false) &&
stdenv.cc.isGNU;
nativeBuildInputs = [ perl ];
buildInputs = lib.optional withCryptodev cryptodev