mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00

- Make passthru.tests an attrset. - Remove CMake VERBOSE option. - Remove spurious `cat CMakeLists.txt`. - Run the test as well. - Actually test some functionality.
22 lines
312 B
Nix
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
|
|
'';
|
|
}
|