diff options
author | Pyrox <pyrox@pyrox.dev> | 2024-06-17 13:30:05 -0400 |
---|---|---|
committer | Pyrox <pyrox@pyrox.dev> | 2024-06-17 13:30:05 -0400 |
commit | 30a6b9ebbba9af565a017ae21df4a34ce9f357dc (patch) | |
tree | e283f9e2b0e7e8660e79666ef7ad16b29dfc4d4d /pkgs/development/libraries/science/math | |
parent | 3d725b83aeab7f58299d73a8e73dfb433efe4087 (diff) |
libtorch: fix tests having self-inclusive src
Diffstat (limited to 'pkgs/development/libraries/science/math')
-rw-r--r-- | pkgs/development/libraries/science/math/libtorch/test/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/science/math/libtorch/test/default.nix b/pkgs/development/libraries/science/math/libtorch/test/default.nix index a7940cd1db8d7..a4b8c2f79140d 100644 --- a/pkgs/development/libraries/science/math/libtorch/test/default.nix +++ b/pkgs/development/libraries/science/math/libtorch/test/default.nix @@ -27,7 +27,13 @@ in stdenv.mkDerivation { pname = "libtorch-test"; version = libtorch-bin.version; - src = ./.; + src = lib.fileset.toSource { + root = ./.; + fileset = lib.fileset.unions [ + ./CMakeLists.txt + ./test.cpp + ]; + }; nativeBuildInputs = [ cmake ]; |