openssl: fix Darwin cross infinite recursion

stdenv depends on openssl, and isGNU depends on stdenv.

Thanks-to: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>
Fixes: https://github.com/NixOS/nixpkgs/issues/126829
(cherry picked from commit 502de3c377ec6a20673c395062b484a1a99c21fd)
This commit is contained in:
Alyssa Ross 2021-06-14 15:36:03 +00:00 committed by github-actions[bot]
parent 32d2d13094
commit cc7a4e5312
1 changed files with 4 additions and 1 deletions

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