diff options
| author | kirillrdy <kirillrdy@gmail.com> | 2025-01-29 06:53:00 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-29 06:53:00 +1100 |
| commit | 09cbc4998989dd40de03dc428ca8870e3b8fc15c (patch) | |
| tree | 8747e3e51fd9cd1715d6f2bdc823a3e36266d633 /pkgs/development/python-modules/llama-cpp-python | |
| parent | 8310b3cf7cb66b6df03c81a0e2a4b80af35acf28 (diff) | |
| parent | a8b2a4dbbdc4d27dbabedcefb147fb51f02810cb (diff) | |
python312Packages.llama-cpp-python: respect NIX_BUILD_CORES (#377188)
Diffstat (limited to 'pkgs/development/python-modules/llama-cpp-python')
| -rw-r--r-- | pkgs/development/python-modules/llama-cpp-python/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/llama-cpp-python/default.nix b/pkgs/development/python-modules/llama-cpp-python/default.nix index 6c07005d4ddf..09ee66b8caf0 100644 --- a/pkgs/development/python-modules/llama-cpp-python/default.nix +++ b/pkgs/development/python-modules/llama-cpp-python/default.nix @@ -71,6 +71,10 @@ buildPythonPackage rec { ] ); + preBuild = '' + export CMAKE_BUILD_PARALLEL_LEVEL="$NIX_BUILD_CORES" + ''; + nativeBuildInputs = [ cmake ninja |
