Add nix-bitcoin.lib for utility functions and types
This commit is contained in:
parent
72000b4a99
commit
322ba5bfff
4 changed files with 9 additions and 2 deletions
5
pkgs/lib.nix
Normal file
5
pkgs/lib.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue