diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-01 12:27:31 -0400 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-01 12:30:26 -0400 |
commit | 08e1c95e9c62b966a44cf435abf6bf62553bf950 (patch) | |
tree | 10d8e47aafbdc40c6292ca3d12fac7337094942f | |
parent | f16202fa8870a4d326072d1112df584f2b6cd4a5 (diff) |
stdenvAdapters.overrideSDK: handle non-drv nativeBuildInputs
-rw-r--r-- | pkgs/stdenv/adapters.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/stdenv/adapters.nix b/pkgs/stdenv/adapters.nix index 9931445ce561a..977ef2eef9c75 100644 --- a/pkgs/stdenv/adapters.nix +++ b/pkgs/stdenv/adapters.nix @@ -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; |