diff options
| author | Ihar Hrachyshka <ihar.hrachyshka@gmail.com> | 2025-01-26 22:46:44 +0000 |
|---|---|---|
| committer | Ihar Hrachyshka <ihar.hrachyshka@gmail.com> | 2025-01-27 09:11:34 -0500 |
| commit | a8b2a4dbbdc4d27dbabedcefb147fb51f02810cb (patch) | |
| tree | f9267a5639b3a4497bba93e2aabca68aa436fb67 /pkgs/development/python-modules/llama-cpp-python/default.nix | |
| parent | a0b45f4b4ec0b08f1c921155b126ad410df0e32b (diff) | |
python312Packages.llama-cpp-python: respect NIX_BUILD_CORES
Diffstat (limited to 'pkgs/development/python-modules/llama-cpp-python/default.nix')
| -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 f7137c0778ee..8f9b293a7ba9 100644 --- a/pkgs/development/python-modules/llama-cpp-python/default.nix +++ b/pkgs/development/python-modules/llama-cpp-python/default.nix @@ -56,6 +56,10 @@ buildPythonPackage rec { ] ); + preBuild = '' + export CMAKE_BUILD_PARALLEL_LEVEL="$NIX_BUILD_CORES" + ''; + nativeBuildInputs = [ cmake ninja |
