freebsd.filterSource: use a less featureful rsync

By adding fewer dependencies, the FreeBSD native bootstrap tarball
becomes lighter.
This commit is contained in:
Audrey Dutcher
2024-05-31 10:37:43 -07:00
parent 295c645d80
commit 2785d4f4ae
@@ -18,6 +18,17 @@ let
lib.concatMapStringsSep "\n" (path: "/${path}") sortedPaths
);
in
runCommand "${pname}-filtered-src" { nativeBuildInputs = [ pkgsBuildBuild.rsync ]; } ''
rsync -a -r --files-from=${filterText} ${source}/ $out
''
runCommand "${pname}-filtered-src"
{
nativeBuildInputs = [
(pkgsBuildBuild.rsync.override {
enableZstd = false;
enableXXHash = false;
enableOpenSSL = false;
enableLZ4 = false;
})
];
}
''
rsync -a -r --files-from=${filterText} ${source}/ $out
''