Skip to content

Commit 3840b6f

Browse files
edude03ggerganov
andauthored
nix : enable curl (#8043)
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
1 parent 257f8e4 commit 3840b6f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.devops/nix/package.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
rocmPackages,
1818
vulkan-headers,
1919
vulkan-loader,
20+
curl,
2021
useBlas ? builtins.all (x: !x) [
2122
useCuda
2223
useMetalKit
@@ -27,6 +28,7 @@
2728
useMetalKit ? stdenv.isAarch64 && stdenv.isDarwin,
2829
useMpi ? false, # Increases the runtime closure size by ~700M
2930
useRocm ? config.rocmSupport,
31+
enableCurl ? true,
3032
useVulkan ? false,
3133
llamaVersion ? "0.0.0", # Arbitrary version, substituted by the flake
3234

@@ -196,13 +198,15 @@ effectiveStdenv.mkDerivation (
196198
++ optionals useMpi [ mpi ]
197199
++ optionals useRocm rocmBuildInputs
198200
++ optionals useBlas [ blas ]
199-
++ optionals useVulkan vulkanBuildInputs;
201+
++ optionals useVulkan vulkanBuildInputs
202+
++ optionals enableCurl [ curl ];
200203

201204
cmakeFlags =
202205
[
203206
(cmakeBool "LLAMA_BUILD_SERVER" true)
204207
(cmakeBool "BUILD_SHARED_LIBS" (!enableStatic))
205208
(cmakeBool "CMAKE_SKIP_BUILD_RPATH" true)
209+
(cmakeBool "LLAMA_CURL" enableCurl)
206210
(cmakeBool "GGML_NATIVE" false)
207211
(cmakeBool "GGML_BLAS" useBlas)
208212
(cmakeBool "GGML_CUDA" useCuda)

0 commit comments

Comments
 (0)