stdenv.mkDerivation: inline variable

This commit is contained in:
Eman Resu
2026-04-26 12:00:15 -04:00
parent 0080eb1226
commit a07d262b88
+8 -4
View File
@@ -394,13 +394,17 @@ let
separateDebugInfo' =
let
actualValue = separateDebugInfo && isLinux;
conflictingOption =
in
if
actualValue
&& (
attrs ? "disallowedReferences"
|| attrs ? "disallowedRequisites"
|| attrs ? "allowedRequisites"
|| attrs ? "allowedReferences";
in
if actualValue && conflictingOption && !__structuredAttrs then
|| attrs ? "allowedReferences"
)
&& !__structuredAttrs
then
throw "separateDebugInfo = true in ${
attrs.pname or "mkDerivation argument"
} requires __structuredAttrs if {dis,}allowedRequisites or {dis,}allowedReferences is set"