From a6e30bef165970a463e2737440489ae3cf3cbe82 Mon Sep 17 00:00:00 2001 From: "Can H. Tartanoglu" Date: Tue, 10 Mar 2026 09:34:40 +0100 Subject: [PATCH] python3Packages.torchcodec: inherit cudaSupport from torch --- pkgs/development/python-modules/torchcodec/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/torchcodec/default.nix b/pkgs/development/python-modules/torchcodec/default.nix index faa871520f9e..f069d76f33a3 100644 --- a/pkgs/development/python-modules/torchcodec/default.nix +++ b/pkgs/development/python-modules/torchcodec/default.nix @@ -1,7 +1,6 @@ { lib, stdenv, - config, buildPythonPackage, fetchFromGitHub, @@ -10,7 +9,6 @@ # buildInputs ffmpeg, - cudaPackages, # build-system cmake, @@ -21,7 +19,8 @@ pytestCheckHook, torchvision, - cudaSupport ? config.cudaSupport, + cudaSupport ? torch.cudaSupport, + cudaPackages, }: buildPythonPackage rec {