From b4c38bc55ac2b46ea349bddfd535cc7e483b0a90 Mon Sep 17 00:00:00 2001 From: Niklas Halonen Date: Sat, 13 Jul 2024 20:05:36 +0300 Subject: [PATCH] fix(cleanTypstSource): take baseNameOf path to match typst.toml --- lib/cleanTypstSource.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cleanTypstSource.nix b/lib/cleanTypstSource.nix index 529ffc3..6b4bab6 100644 --- a/lib/cleanTypstSource.nix +++ b/lib/cleanTypstSource.nix @@ -3,7 +3,7 @@ lib.cleanSourceWith { src = lib.cleanSource src; filter = path: type: let isTypstSource = lib.hasSuffix ".typ" path; - isSpecialFile = builtins.elem path [ + isSpecialFile = builtins.elem (builtins.baseNameOf path) [ "typst.toml" ]; in