stdenvAdapters.overrideSDK: handle non-drv nativeBuildInputs
This commit is contained in:
parent
f16202fa88
commit
08e1c95e9c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue