python3Packages.torchaudio: pass custom stdenv to buildPythonApplication with an override

Passing `stdenv` directly to `buildPythonPackage` or `buildPythonApplication`
is deprecated with `oldestSupportedRelease = 2511`.
This commit is contained in:
Leona Maroni
2026-01-05 15:36:01 +01:00
parent abb6ad9548
commit 6a673c9729
@@ -74,14 +74,13 @@ let
else
throw "No GPU targets specified"
);
stdenv = torch.stdenv;
in
buildPythonPackage rec {
buildPythonPackage.override { inherit stdenv; } rec {
pname = "torchaudio";
version = "2.9.1";
pyproject = true;
stdenv = torch.stdenv;
src = fetchFromGitHub {
owner = "pytorch";
repo = "audio";