File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 17
17
rocmPackages ,
18
18
vulkan-headers ,
19
19
vulkan-loader ,
20
+ curl ,
20
21
useBlas ? builtins . all ( x : ! x ) [
21
22
useCuda
22
23
useMetalKit
27
28
useMetalKit ? stdenv . isAarch64 && stdenv . isDarwin ,
28
29
useMpi ? false , # Increases the runtime closure size by ~700M
29
30
useRocm ? config . rocmSupport ,
31
+ enableCurl ? true ,
30
32
useVulkan ? false ,
31
33
llamaVersion ? "0.0.0" , # Arbitrary version, substituted by the flake
32
34
@@ -196,13 +198,15 @@ effectiveStdenv.mkDerivation (
196
198
++ optionals useMpi [ mpi ]
197
199
++ optionals useRocm rocmBuildInputs
198
200
++ optionals useBlas [ blas ]
199
- ++ optionals useVulkan vulkanBuildInputs ;
201
+ ++ optionals useVulkan vulkanBuildInputs
202
+ ++ optionals enableCurl [ curl ] ;
200
203
201
204
cmakeFlags =
202
205
[
203
206
( cmakeBool "LLAMA_BUILD_SERVER" true )
204
207
( cmakeBool "BUILD_SHARED_LIBS" ( ! enableStatic ) )
205
208
( cmakeBool "CMAKE_SKIP_BUILD_RPATH" true )
209
+ ( cmakeBool "LLAMA_CURL" enableCurl )
206
210
( cmakeBool "GGML_NATIVE" false )
207
211
( cmakeBool "GGML_BLAS" useBlas )
208
212
( cmakeBool "GGML_CUDA" useCuda )
You can’t perform that action at this time.
0 commit comments