nix: filter nix files from src
All checks were successful
Tests / Go tests (push) Successful in 38s
Nix / NixOS tests (push) Successful in 3m7s

This prevents constant rebuilds when debugging integration tests.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
Ophestra 2024-12-21 17:39:42 +09:00
parent af4d92b785
commit ed8ee5eb4b
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q

View File

@ -16,7 +16,11 @@ buildGoModule rec {
pname = "fortify"; pname = "fortify";
version = "0.2.5"; version = "0.2.5";
src = ./.; src = builtins.path {
name = "fortify-src";
path = lib.cleanSource ./.;
filter = path: type: !(type != "directory" && lib.hasSuffix ".nix" path);
};
vendorHash = null; vendorHash = null;
ldflags = ldflags =