From 7273c31af5af5f45e122bfa348083fb9f7f57367 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 14 Mar 2021 14:40:54 +0000 Subject: [PATCH] nix/pkgs/pomerium: allow unitless 0 --- nix/pkgs/pomerium/module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/pkgs/pomerium/module.nix b/nix/pkgs/pomerium/module.nix index 022a98f9e9..c5134cc219 100644 --- a/nix/pkgs/pomerium/module.nix +++ b/nix/pkgs/pomerium/module.nix @@ -6,7 +6,7 @@ let goDuration = types.mkOptionType { name = "goDuration"; description = "Go duration (https://golang.org/pkg/time/#ParseDuration)"; - check = x: types.str.check x && builtins.match "(-?[0-9]+(\.[0-9]+)?(ns|us|µs|ms|s|m|h))+" x != null; + check = x: types.str.check x && builtins.match "((-?[0-9]+(\.[0-9]+)?(ns|us|µs|ms|s|m|h))+|0)" x != null; inherit (types.str) merge; }; in