From 711d401b3e8ddd1b6a4dfa7f1875afe12bee9845 Mon Sep 17 00:00:00 2001 From: outremonde Date: Wed, 11 Jun 2025 13:16:49 -0400 Subject: attempted to fix umport Former-commit-id: 18071da78e48b76d5e308bb887e049db46421894 --- lib/umport.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/umport.nix b/lib/umport.nix index 5cd79a6..0a5a022 100755 --- a/lib/umport.nix +++ b/lib/umport.nix @@ -11,7 +11,7 @@ excludedFiles = filter (path: pathIsRegularFile path) exclude; excludedDirs = filter (path: pathIsDirectory path) exclude; isExcluded = path: - if (elem path excludedFiles) || ("flake.nix" == path) || ("shell.nix" == path) + if (elem path excludedFiles) || (hasSuffix "/flake.nix" path) || (hasSuffix "/shell.nix" path) then true else (filter (excludedDir: lib.path.hasPrefix excludedDir path) excludedDirs) != []; in -- cgit v1.2.3