27 lines
372 B
Nix
27 lines
372 B
Nix
{ stdenv, cmake, libtorch-bin, symlinkJoin }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "libtorch-test";
|
|
version = libtorch-bin.version;
|
|
|
|
src = ./.;
|
|
|
|
postPatch = ''
|
|
cat CMakeLists.txt
|
|
'';
|
|
|
|
makeFlags = [ "VERBOSE=1" ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libtorch-bin ];
|
|
|
|
installPhase = ''
|
|
touch $out
|
|
'';
|
|
|
|
checkPhase = ''
|
|
./test
|
|
'';
|
|
}
|