nixpkgs/pkgs/development/libraries/science/math/libtorch/test/default.nix
Daniël de Kok a71f07694c libtorch-bin: cleanup passthru test
- Make passthru.tests an attrset.
- Remove CMake VERBOSE option.
- Remove spurious `cat CMakeLists.txt`.
- Run the test as well.
- Actually test some functionality.
2020-11-07 13:50:23 +01:00

22 lines
312 B
Nix

{ stdenv, cmake, libtorch-bin, symlinkJoin }:
stdenv.mkDerivation {
pname = "libtorch-test";
version = libtorch-bin.version;
src = ./.;
nativeBuildInputs = [ cmake ];
buildInputs = [ libtorch-bin ];
doCheck = true;
installPhase = ''
touch $out
'';
checkPhase = ''
./test
'';
}