about summary refs log tree commit diff
path: root/pkgs/development/libraries/science
diff options
context:
space:
mode:
authorPyrox <pyrox@pyrox.dev>2024-06-17 13:30:05 -0400
committerPyrox <pyrox@pyrox.dev>2024-06-17 13:30:05 -0400
commit30a6b9ebbba9af565a017ae21df4a34ce9f357dc (patch)
treee283f9e2b0e7e8660e79666ef7ad16b29dfc4d4d /pkgs/development/libraries/science
parent3d725b83aeab7f58299d73a8e73dfb433efe4087 (diff)
libtorch: fix tests having self-inclusive src
Diffstat (limited to 'pkgs/development/libraries/science')
-rw-r--r--pkgs/development/libraries/science/math/libtorch/test/default.nix8
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 ];