diff --git a/pkgs/development/python-modules/torch/default.nix b/pkgs/development/python-modules/torch/default.nix index 576e6b1bfac9..ba1da5844b17 100644 --- a/pkgs/development/python-modules/torch/default.nix +++ b/pkgs/development/python-modules/torch/default.nix @@ -414,7 +414,7 @@ in buildPythonPackage rec { homepage = "https://pytorch.org/"; license = licenses.bsd3; maintainers = with maintainers; [ teh thoughtpolice tscholak ]; # tscholak esp. for darwin-related builds - platforms = with platforms; linux ++ lib.optionals (!cudaSupport || !rocmSupport) darwin; + platforms = with platforms; linux ++ lib.optionals (!cudaSupport && !rocmSupport) darwin; broken = rocmSupport && cudaSupport; # CUDA and ROCm are mutually exclusive }; }