mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
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.
This commit is contained in:
parent
039101ad94
commit
303977634c
@ -42,8 +42,9 @@ in stdenv.mkDerivation {
|
||||
touch $out
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
checkPhase = lib.optionalString cudaSupport ''
|
||||
LD_LIBRARY_PATH=${cudaStub}''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH \
|
||||
./test
|
||||
'' + ''
|
||||
./test
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user