mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-27 12:06:33 +03:00
6 lines
165 B
Nix
6 lines
165 B
Nix
{ lib }:
|
|
{
|
|
# An address type that checks that there's no port
|
|
ipv4Address = lib.types.addCheck lib.types.str (s: builtins.length (builtins.split ":" s) == 1);
|
|
}
|