Skip to content

Commit 1127e9d

Browse files
committed
python3Packages.cupy: pass custom stdenv to buildPythonApplication with an override
Passing `stdenv` directly to `buildPythonPackage` or `buildPythonApplication` is deprecated with `oldestSupportedRelease = 2511`.
1 parent 8d063fd commit 1127e9d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pkgs/development/python-modules/cupy/default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ let
4949
outpaths ++ lib.concatMap (outpath: lib.map (output: outpath.${output}) outpath.outputs) outpaths;
5050
};
5151
in
52-
buildPythonPackage rec {
52+
buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } rec {
5353
pname = "cupy";
5454
version = "13.6.0";
5555
pyproject = true;
5656

57-
stdenv = cudaPackages.backendStdenv;
58-
5957
src = fetchFromGitHub {
6058
owner = "cupy";
6159
repo = "cupy";

0 commit comments

Comments
 (0)