match -> builtins.match

This commit is contained in:
niten 2023-09-24 14:09:38 -07:00
parent 34ef735c69
commit 9e2df04c0f

View File

@ -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}";