From 88be57338f3d2f5d9e94f361ac3313a90e10de0b Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Thu, 20 Jun 2024 15:30:44 -0400 Subject: [PATCH] enable curl in nix build --- .devops/nix/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.devops/nix/package.nix b/.devops/nix/package.nix index 87bb3a20f..3aac26e30 100644 --- a/.devops/nix/package.nix +++ b/.devops/nix/package.nix @@ -18,6 +18,7 @@ vulkan-headers, vulkan-loader, clblast, + curl, useBlas ? builtins.all (x: !x) [ useCuda useMetalKit @@ -30,6 +31,7 @@ useMpi ? false, # Increases the runtime closure size by ~700M useOpenCL ? false, useRocm ? config.rocmSupport, + enableCurl ? true, useVulkan ? false, llamaVersion ? "0.0.0", # Arbitrary version, substituted by the flake @@ -201,7 +203,8 @@ effectiveStdenv.mkDerivation ( ++ optionals useOpenCL [ clblast ] ++ optionals useRocm rocmBuildInputs ++ optionals useBlas [ blas ] - ++ optionals useVulkan vulkanBuildInputs; + ++ optionals useVulkan vulkanBuildInputs + ++ optionals enableCurl [ curl ]; cmakeFlags = [ @@ -216,6 +219,7 @@ effectiveStdenv.mkDerivation ( (cmakeBool "LLAMA_METAL" useMetalKit) (cmakeBool "LLAMA_VULKAN" useVulkan) (cmakeBool "LLAMA_STATIC" enableStatic) + (cmakeBool "LLAMA_CURL" enableCurl) ] ++ optionals useCuda [ (