aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/libraries/science/math/libtorch/test/default.nix
blob: e69807871f46f2bb2f19df6edca8f4fee1e1a66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ 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
  '';
}