1
0
Fork 1
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:
Randy Eckenrode 2023-11-01 12:27:31 -04:00
parent f16202fa88
commit 08e1c95e9c
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

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;