diff --git a/pkgs/development/cuda-modules/cuda/overrides.nix b/pkgs/development/cuda-modules/cuda/overrides.nix index a8ccbff06aa9..46f5d506e6f2 100644 --- a/pkgs/development/cuda-modules/cuda/overrides.nix +++ b/pkgs/development/cuda-modules/cuda/overrides.nix @@ -188,6 +188,7 @@ filterAndCreateOverrides { # to avoid autopatchelf failing to find libpython3.8.so. + lib.optionalString (cudaAtLeast "12.5") '' find $bin -name '*python3.8*' -delete + find $bin -name '*python3.9*' -delete ''; };