From 3f8d326961299f2296841a695e97f6e347340287 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 6 Oct 2023 10:37:44 -0700 Subject: [PATCH] match -> builtins.match; --- zone-to-zonefile.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone-to-zonefile.nix b/zone-to-zonefile.nix index 67b5670..512ebf3 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -20,7 +20,7 @@ let maxInt = foldr (a: b: if (a < b) then b else a) 0; - recordMatcher = match "^([^;].*) IN ([A-Z][A-Z0-9]*) (.+)$"; + recordMatcher = builtins.match "^([^;].*) IN ([A-Z][A-Z0-9]*) (.+)$"; isRecord = str: (recordMatcher str) != null; @@ -57,9 +57,9 @@ let isNotNull = o: !isNull o; hostToFqdn = host: - if isNotNull (match ".+.$" host) then + if isNotNull (builtins.match ".+.$" host) then host - else if isNotNull (match ".+..+$" host) then + else if isNotNull (builtins.match ".+..+$" host) then "${host}." else if (hasAttr host zone.hosts) then "${host}.${domain}."