nix: exclude files ending in ".py"

This reduces rebuilds when debugging nixos tests.

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

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;