nix/pkgs/pomerium: allow unitless 0
This commit is contained in:
parent
36577c5bba
commit
7273c31af5
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ let
|
||||||
goDuration = types.mkOptionType {
|
goDuration = types.mkOptionType {
|
||||||
name = "goDuration";
|
name = "goDuration";
|
||||||
description = "Go duration (https://golang.org/pkg/time/#ParseDuration)";
|
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;
|
inherit (types.str) merge;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue