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:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user