nix: exclude files ending in ".py"
All checks were successful
Test / Create distribution (push) Successful in 26s
Test / Fortify (push) Successful in 2m12s
Test / Data race detector (push) Successful in 2m59s
Test / Flake checks (push) Successful in 44s

This reduces rebuilds when debugging nixos tests.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
Ophestra 2025-02-24 17:41:56 +09:00
parent e6cd2bb2a8
commit 751aa350ee
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q

View File

@ -27,7 +27,7 @@ buildGoModule rec {
path = lib.cleanSource ./.;
filter =
path: type:
!(type == "regular" && lib.hasSuffix ".nix" path)
!(type == "regular" && (lib.hasSuffix ".nix" path || lib.hasSuffix ".py" path))
&& !(type == "directory" && lib.hasSuffix "/cmd/fsu" path);
};
vendorHash = null;