Skip to content

Commit 5e028cc

Browse files
committed
python3Packages.llama-cpp-python: pass custom stdenv to buildPythonApplication with an override
Passing `stdenv` directly to `buildPythonPackage` or `buildPythonApplication` is deprecated with `oldestSupportedRelease = 2511`.
1 parent 70efa53 commit 5e028cc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • pkgs/development/python-modules/llama-cpp-python

pkgs/development/python-modules/llama-cpp-python/default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
let
4040
stdenvTarget = if cudaSupport then gcc13Stdenv else stdenv;
4141
in
42-
buildPythonPackage rec {
42+
buildPythonPackage.override { stdenv = stdenvTarget; } rec {
4343
pname = "llama-cpp-python";
4444
version = "0.3.16";
4545
pyproject = true;
@@ -108,8 +108,6 @@ buildPythonPackage rec {
108108
]
109109
);
110110

111-
stdenv = stdenvTarget;
112-
113111
dependencies = [
114112
diskcache
115113
jinja2

0 commit comments

Comments
 (0)