From 070eb31c8c899bcceacc2c45fe66a526ebc39551 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Thu, 11 Sep 2025 18:22:29 -0400 Subject: [PATCH] llama-cpp: require newer apple sdk for Metal Latest update [1] pulled code that relies on MTLBuffer `gpuaddress` property that was added in macOS 13.0+ [2]. Build failed with: error: property 'gpuAddress' not found on object of type 'id' [1] https://github.com/NixOS/nixpkgs/pull/438529 [2] https://developer.apple.com/documentation/metal/mtlbuffer/gpuaddress --- pkgs/by-name/ll/llama-cpp/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/ll/llama-cpp/package.nix b/pkgs/by-name/ll/llama-cpp/package.nix index 9f9af59cc7de..376ec300c826 100644 --- a/pkgs/by-name/ll/llama-cpp/package.nix +++ b/pkgs/by-name/ll/llama-cpp/package.nix @@ -30,6 +30,7 @@ metalSupport ? stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 && !openclSupport, vulkanSupport ? false, rpcSupport ? false, + apple-sdk_14, curl, shaderc, vulkan-headers, @@ -119,6 +120,7 @@ effectiveStdenv.mkDerivation (finalAttrs: { ++ optionals rocmSupport rocmBuildInputs ++ optionals blasSupport [ blas ] ++ optionals vulkanSupport vulkanBuildInputs + ++ optionals metalSupport [ apple-sdk_14 ] ++ [ curl ]; preConfigure = ''