stdenvAdapters.overrideSDK: handle non-drv nativeBuildInputs

This commit is contained in:
Randy Eckenrode
2023-11-01 12:30:26 -04:00
parent f16202fa88
commit 08e1c95e9c
+1 -1
View File
@@ -328,7 +328,7 @@ rec {
mapRuntimeToSDK = pkg:
# Only remap xcbuild for now, which exports the SDK used to build it.
if pkg != null && lib.getName pkg == "xcodebuild"
if pkg != null && lib.isAttrs pkg && lib.getName pkg == "xcodebuild"
then pkg.override { stdenv = overrideSDK stdenv { inherit darwinMinVersion darwinSdkVersion; }; }
else pkg;