package.nix: Exclude .github from cleaned source

This commit is contained in:
Zhaofeng Li 2024-11-07 15:24:37 -07:00
parent 8a8f47a1b1
commit 1f7b8ab80f

View file

@ -5,7 +5,12 @@ rustPlatform.buildRustPackage rec {
version = "0.5.0-pre";
src = lib.cleanSourceWith {
filter = name: type: !(type == "directory" && builtins.elem (baseNameOf name) [ "target" "manual" "integration-tests" ]);
filter = name: type: !(type == "directory" && builtins.elem (baseNameOf name) [
".github"
"target"
"manual"
"integration-tests"
]);
src = lib.cleanSource ./.;
};