nixos/kresd: Fix unsupported regex
Regex supported by `builtins.match` differ on Linux and Darwin
(see NixOS/Nix#1537) and the empty match group errors on Darwin.
But simply removing it does not change the logic in the module in any
way.
commitab94ea66fae3aba48151f0e2243b2317378cd128
authorBrian Olsen <brian@maven-group.org>
dateThu 15 Oct 2020, 14:37 (6 years ago)
parentb073b54
nixos/modules/services/networking/kresd.nix+1−1
@@ -10,7 +10,7 @@ let
1010 mkListen = kind: addr: let
1111 al_v4 = builtins.match "([0-9.]\+):([0-9]\+)" addr;
1212 al_v6 = builtins.match "\\[(.\+)]:([0-9]\+)" addr;
13− al_portOnly = builtins.match "()([0-9]\+)" addr;
13+ al_portOnly = builtins.match "([0-9]\+)" addr;
1414 al = findFirst (a: a != null)
1515 (throw "services.kresd.*: incorrect address specification '${addr}'")
1616 [ al_v4 al_v6 al_portOnly ];