From 9e2df04c0fac3ff867daa5d3829c76f12762435d Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 24 Sep 2023 14:09:38 -0700 Subject: [PATCH] match -> builtins.match --- dovecot.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dovecot.nix b/dovecot.nix index ce37c86..2c3a0ab 100644 --- a/dovecot.nix +++ b/dovecot.nix @@ -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}";