From 4bf3136364fe093c63bb9d2a5bf8cfa9c4136b37 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 4 Dec 2023 08:29:45 -0500 Subject: [PATCH] fix: don't filter out tags in nix build Signed-off-by: seth --- nix/derivation.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/derivation.nix b/nix/derivation.nix index f52b5a8..5f0ebee 100644 --- a/nix/derivation.nix +++ b/nix/derivation.nix @@ -11,14 +11,16 @@ filter = path: type: let path' = toString path; base = baseNameOf path'; + parent = baseNameOf (dirOf path'); dirBlocklist = ["nix"]; matches = lib.any (suffix: lib.hasSuffix suffix base) [".rs"]; isCargo = base == "Cargo.lock" || base == "Cargo.toml"; + isTag = parent == "tags"; isAllowedDir = !(builtins.elem base dirBlocklist); in - (type == "directory" && isAllowedDir) || matches || isCargo; + (type == "directory" && isAllowedDir) || matches || isCargo || isTag; filterSource = src: lib.cleanSourceWith {