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