libtorch-bin: fix false CUDA dependency in passthru test

The passthru test used the CUDA toolkit for the CUDA stub
unconditionally, also requiring the cudatoolkit derivation when
cudaSupport = false.

authored by danieldk.tngl.sh and committed by Jonathan Ringer 30397763 039101ad

+3 -2
+3 -2
pkgs/development/libraries/science/math/libtorch/test/default.nix
··· 42 42 touch $out 43 43 ''; 44 44 45 - checkPhase = '' 45 + checkPhase = lib.optionalString cudaSupport '' 46 46 LD_LIBRARY_PATH=${cudaStub}''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH \ 47 - ./test 47 + '' + '' 48 + ./test 48 49 ''; 49 50 }