match -> builtins.match
This commit is contained in:
parent
34ef735c69
commit
9e2df04c0f
@ -8,7 +8,8 @@ let
|
||||
isRegularFile = _: type: type == "regular";
|
||||
sieves = filterAttrs isRegularFile (builtins.readDir ./sieves);
|
||||
headOrNull = lst: if lst == [ ] then null else head lst;
|
||||
stripExt = ext: filename: headOrNull (match "(.+)[.]${ext}$" filename);
|
||||
stripExt = ext: filename:
|
||||
headOrNull (builtins.match "(.+)[.]${ext}$" filename);
|
||||
compileFile = filename: _:
|
||||
let
|
||||
filePath = ./sieves + "/${filename}";
|
||||
|
Loading…
Reference in New Issue
Block a user