Merge pull request #320579 from pyrox0/libtorch-test-fix-src

libtorch-bin: fix test having self-inclusive src
This commit is contained in:
Silvan Mosberger 2024-06-17 22:15:12 +02:00 committed by GitHub
commit c6b27d0876
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ];