From 08e1c95e9c62b966a44cf435abf6bf62553bf950 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 1 Nov 2023 12:27:31 -0400 Subject: [PATCH] stdenvAdapters.overrideSDK: handle non-drv nativeBuildInputs --- pkgs/stdenv/adapters.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/stdenv/adapters.nix b/pkgs/stdenv/adapters.nix index 9931445ce561..977ef2eef9c7 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;