aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2016-07-28 23:38:22 +0200
committerLeo Famulari <leo@famulari.name>2016-08-08 22:36:37 -0400
commit3ed361ea0973e3622a2aba5b920d02166f62248e (patch)
treef19193236bc12870093526a0aced288d671b329e
parent1201eab9c46d9d478f1bd2a35f88416fc824d502 (diff)
downloadguix-3ed361ea0973e3622a2aba5b920d02166f62248e.tar.gz
guix-3ed361ea0973e3622a2aba5b920d02166f62248e.zip
gnu: Add perl-net-patricia.
* gnu/packages/networking.scm (perl-net-patricia): Add variable. Signed-off-by: Leo Famulari <leo@famulari.name>
-rw-r--r--gnu/packages/networking.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 271f848197..004e76f1ab 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -531,3 +531,31 @@ offline emulation of DNS.")
"Manages IPv4 and IPv6 addresses and subnets")
(description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
(license (package-license perl))))
+
+(define-public perl-net-patricia
+ (package
+ (name "perl-net-patricia")
+ (version "1.22")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
+ (build-system perl-build-system)
+ (inputs
+ `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
+ ("perl-socket6" ,perl-socket6)))
+ (home-page
+ "http://search.cpan.org/dist/Net-Patricia")
+ (synopsis
+ "Patricia Trie Perl module for fast IP address lookups")
+ (description
+ "Net::Patricia does IP address lookups quickly in Perl.")
+ ;; The bindings are licensed under GPL2 or later.
+ ;; libpatricia is licensed under 2-clause BSD.
+ (license (list license:gpl2+ license:bsd-2))))