mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-libp2p-go-cidranger: Move to ipfs.
* gnu/packages/golang-web.scm (go-github-com-libp2p-go-cidranger): Move from here ... * gnu/packages/ipfs.scm: ... to here. Change-Id: Idb0ada9852e028d76ca88237b298d4f0d5d8617a
This commit is contained in:
parent
a3e6b7509d
commit
e75833ff8d
2 changed files with 39 additions and 38 deletions
|
@ -6203,44 +6203,6 @@ to delete records.
|
||||||
@end itemize")
|
@end itemize")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public go-github-com-libp2p-go-cidranger
|
|
||||||
(package
|
|
||||||
(name "go-github-com-libp2p-go-cidranger")
|
|
||||||
(version "1.1.0")
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method git-fetch)
|
|
||||||
(uri (git-reference
|
|
||||||
(url "https://github.com/libp2p/go-cidranger")
|
|
||||||
(commit (string-append "v" version))))
|
|
||||||
(file-name (git-file-name name version))
|
|
||||||
(sha256
|
|
||||||
(base32 "05hzlk5hx7qna5znr3q1crr0qb7h8yrv1v96pj015dh0kbdkdaba"))))
|
|
||||||
(build-system go-build-system)
|
|
||||||
(arguments
|
|
||||||
(list
|
|
||||||
;; XXX: Check if the most of the tests may be enabled:
|
|
||||||
;; src/github.com/libp2p/go-cidranger/trie_test.go:557:8: cannot use
|
|
||||||
;; 4294967295 (untyped int constant) as int value in assignment
|
|
||||||
;; (overflows).
|
|
||||||
#:tests? (and (target-64bit?)
|
|
||||||
(not (%current-target-system)))
|
|
||||||
#:import-path "github.com/libp2p/go-cidranger"))
|
|
||||||
(native-inputs
|
|
||||||
(list go-github-com-stretchr-testify))
|
|
||||||
(propagated-inputs
|
|
||||||
(list go-github-com-ipfs-go-detect-race))
|
|
||||||
(home-page "https://github.com/libp2p/go-cidranger")
|
|
||||||
(synopsis "Fast IP to CIDR lookup in Golang")
|
|
||||||
(description
|
|
||||||
"Fast IP to @url{https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing,
|
|
||||||
CIDR} block(s) lookup using trie in Golang, inspired by
|
|
||||||
@url{https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux, IPv4
|
|
||||||
route lookup Linux}. Possible use cases include detecting if a IP address is
|
|
||||||
from published cloud provider CIDR blocks (e.g. 52.95.110.1 is contained in
|
|
||||||
published AWS Route53 CIDR 52.95.110.0/24), IP routing rules, etc.")
|
|
||||||
(license license:expat)))
|
|
||||||
|
|
||||||
(define-public go-github-com-libp2p-go-doh-resolver
|
(define-public go-github-com-libp2p-go-doh-resolver
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-libp2p-go-doh-resolver")
|
(name "go-github-com-libp2p-go-doh-resolver")
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix build-system go)
|
#:use-module (guix build-system go)
|
||||||
|
#:use-module (guix utils)
|
||||||
#:use-module (gnu packages databases)
|
#:use-module (gnu packages databases)
|
||||||
#:use-module (gnu packages gcc)
|
#:use-module (gnu packages gcc)
|
||||||
#:use-module (gnu packages golang)
|
#:use-module (gnu packages golang)
|
||||||
|
@ -1843,6 +1844,44 @@ for distributing DNS subdomains with CA-signed TLS certificates to libp2p
|
||||||
peers.")
|
peers.")
|
||||||
(license (list license:asl2.0 license:expat))))
|
(license (list license:asl2.0 license:expat))))
|
||||||
|
|
||||||
|
(define-public go-github-com-libp2p-go-cidranger
|
||||||
|
(package
|
||||||
|
(name "go-github-com-libp2p-go-cidranger")
|
||||||
|
(version "1.1.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/libp2p/go-cidranger")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "05hzlk5hx7qna5znr3q1crr0qb7h8yrv1v96pj015dh0kbdkdaba"))))
|
||||||
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
;; XXX: Check if the most of the tests may be enabled:
|
||||||
|
;; src/github.com/libp2p/go-cidranger/trie_test.go:557:8: cannot use
|
||||||
|
;; 4294967295 (untyped int constant) as int value in assignment
|
||||||
|
;; (overflows).
|
||||||
|
#:tests? (and (target-64bit?)
|
||||||
|
(not (%current-target-system)))
|
||||||
|
#:import-path "github.com/libp2p/go-cidranger"))
|
||||||
|
(native-inputs
|
||||||
|
(list go-github-com-stretchr-testify))
|
||||||
|
(propagated-inputs
|
||||||
|
(list go-github-com-ipfs-go-detect-race))
|
||||||
|
(home-page "https://github.com/libp2p/go-cidranger")
|
||||||
|
(synopsis "Fast IP to CIDR lookup in Golang")
|
||||||
|
(description
|
||||||
|
"Fast IP to @url{https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing,
|
||||||
|
CIDR} block(s) lookup using trie in Golang, inspired by
|
||||||
|
@url{https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux, IPv4
|
||||||
|
route lookup Linux}. Possible use cases include detecting if a IP address is
|
||||||
|
from published cloud provider CIDR blocks (e.g. 52.95.110.1 is contained in
|
||||||
|
published AWS Route53 CIDR 52.95.110.0/24), IP routing rules, etc.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public go-github-com-libp2p-go-libp2p
|
(define-public go-github-com-libp2p-go-libp2p
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-libp2p-go-libp2p")
|
(name "go-github-com-libp2p-go-libp2p")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue