summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/umport.nix2
1 files changed, 1 insertions, 1 deletions
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