From 07685d9dc3165d7c6d43dcddc520707ed9a7bfae Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Thu, 23 Jan 2025 21:58:45 +0200 Subject: [PATCH] llama-cpp: build with curl --- pkgs/by-name/ll/llama-cpp/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ll/llama-cpp/package.nix b/pkgs/by-name/ll/llama-cpp/package.nix index cba0979e1fc3..550269e1639e 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, + curl, shaderc, vulkan-headers, vulkan-loader, @@ -130,13 +131,15 @@ effectiveStdenv.mkDerivation (finalAttrs: { ++ optionals openclSupport [ clblast ] ++ optionals rocmSupport rocmBuildInputs ++ optionals blasSupport [ blas ] - ++ optionals vulkanSupport vulkanBuildInputs; + ++ optionals vulkanSupport vulkanBuildInputs + ++ [ curl ]; cmakeFlags = [ # -march=native is non-deterministic; override with platform-specific flags if needed (cmakeBool "GGML_NATIVE" false) (cmakeBool "LLAMA_BUILD_SERVER" true) + (cmakeBool "LLAMA_CURL" true) (cmakeBool "BUILD_SHARED_LIBS" true) (cmakeBool "GGML_BLAS" blasSupport) (cmakeBool "GGML_CLBLAST" openclSupport)