2020-08-27 09:42:38 -07:00
|
|
|
{ stdenv, cmake, libtorch-bin, symlinkJoin }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "libtorch-test";
|
|
|
|
version = libtorch-bin.version;
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ libtorch-bin ];
|
|
|
|
|
2020-11-07 04:50:23 -08:00
|
|
|
doCheck = true;
|
|
|
|
|
2020-08-27 09:42:38 -07:00
|
|
|
installPhase = ''
|
|
|
|
touch $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
./test
|
|
|
|
'';
|
|
|
|
}
|