libtorch: fix tests having self-inclusive src

This commit is contained in:
Pyrox
2024-06-17 13:30:05 -04:00
parent 3d725b83ae
commit 30a6b9ebbb
@@ -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 ];