mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
stdenvAdapters.overrideSDK: handle non-drv nativeBuildInputs
This commit is contained in:
parent
f16202fa88
commit
08e1c95e9c
|
@ -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