filter -> filterAttrs

This commit is contained in:
niten 2023-09-24 14:00:58 -07:00
parent 9f609b5786
commit c84617c972

View File

@ -6,7 +6,7 @@ let
sievePath = let
isRegularFile = _: type: type == "regular";
sieves = filter isRegularFile (builtins.readDir ./sieves);
sieves = filterAttrs isRegularFile (builtins.readDir ./sieves);
headOrNull = lst: if lst == [ ] then null else head lst;
stripExt = ext: filename: headOrNull (match "(.+)[.]${ext}$" filename);
compileFile = filename: