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<MTLBuffer>'

[1] https://github.com/NixOS/nixpkgs/pull/438529
[2] https://developer.apple.com/documentation/metal/mtlbuffer/gpuaddress
This commit is contained in:
Ihar Hrachyshka
2025-09-11 18:22:29 -04:00
parent e1b2366be7
commit 070eb31c8c
+2
View File
@@ -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 = ''