diff options
| author | Ophestra <cat@gensokyo.uk> | 2024-12-21 17:39:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2024-12-21 17:39:42 +0900 |
| commit | ed8ee5eb4bc8d7d0146af29d200d2f8e9f623ba3 (patch) | |
| tree | a4da2528d71dc09316ffc2c005b3ea84263ea008 | |
| parent | af4d92b785e193664abb6c7c23a5a040d90d832b (diff) | |
nix: filter nix files from src
This prevents constant rebuilds when debugging integration tests.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | package.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package.nix b/package.nix index 79d13bf2..39ed7238 100644 --- a/package.nix +++ b/package.nix @@ -16,7 +16,11 @@ buildGoModule rec { pname = "fortify"; 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; ldflags = |
