From 0a4e633db2d8d3a7aec19145d037d421ac64d132 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 23 Mar 2025 22:20:19 +0900 Subject: [PATCH] nix: filter test from source Signed-off-by: Ophestra --- package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.nix b/package.nix index 5169bea..f82bc8f 100644 --- a/package.nix +++ b/package.nix @@ -34,7 +34,7 @@ buildGoModule rec { src = builtins.path { name = "${pname}-src"; path = lib.cleanSource ./.; - filter = path: type: !(type == "regular" && (lib.hasSuffix ".nix" path || lib.hasSuffix ".py" path)) && !(type == "directory" && lib.hasSuffix "/cmd/fsu" path); + filter = path: type: !(type == "regular" && (lib.hasSuffix ".nix" path || lib.hasSuffix ".py" path)) && !(type == "directory" && lib.hasSuffix "/test" path) && !(type == "directory" && lib.hasSuffix "/cmd/fsu" path); }; vendorHash = null;