diff options
| author | outremonde <outremonde@vivaldi.net> | 2025-06-11 13:49:13 -0400 |
|---|---|---|
| committer | outremonde <outremonde@vivaldi.net> | 2025-06-11 13:49:13 -0400 |
| commit | 136b8f0404e64bf835487d2794502def6578c2f5 (patch) | |
| tree | f4a45cddc2a562c44ed29a05bb40cc486d31d26f /lib | |
| parent | 711d401b3e8ddd1b6a4dfa7f1875afe12bee9845 (diff) | |
fixed umport
Former-commit-id: 0b532187ca616e7e900796afa05c62b0a15a6a00
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/umport.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/umport.nix b/lib/umport.nix index 0a5a022..c1b04d6 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) || (hasSuffix "/flake.nix" path) || (hasSuffix "/shell.nix" path) + if (elem path excludedFiles) || ("flake.nix" == (builtins.baseNameOf path)) || ("shell.nix" == (builtins.baseNameOf path)) then true else (filter (excludedDir: lib.path.hasPrefix excludedDir path) excludedDirs) != []; in |
