diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-11 12:27:10 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-11 12:27:10 +0100 |
| commit | e75833ff8d49b75b08f012b15ffdf87392eeda48 (patch) | |
| tree | 843197859cd1e9f6e10160c666cf7816dbdab55a /gnu/packages | |
| parent | a3e6b7509d8f7cc33eb5232cf55f99a9867775f7 (diff) | |
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
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/golang-web.scm | 38 | ||||
| -rw-r--r-- | gnu/packages/ipfs.scm | 39 |
2 files changed, 39 insertions, 38 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index add3481d63e..fe1b455d41a 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm | |||
| @@ -6203,44 +6203,6 @@ to delete records. | |||
| 6203 | @end itemize") | 6203 | @end itemize") |
| 6204 | (license license:expat))) | 6204 | (license license:expat))) |
| 6205 | 6205 | ||
| 6206 | (define-public go-github-com-libp2p-go-cidranger | ||
| 6207 | (package | ||
| 6208 | (name "go-github-com-libp2p-go-cidranger") | ||
| 6209 | (version "1.1.0") | ||
| 6210 | (source | ||
| 6211 | (origin | ||
| 6212 | (method git-fetch) | ||
| 6213 | (uri (git-reference | ||
| 6214 | (url "https://github.com/libp2p/go-cidranger") | ||
| 6215 | (commit (string-append "v" version)))) | ||
| 6216 | (file-name (git-file-name name version)) | ||
| 6217 | (sha256 | ||
| 6218 | (base32 "05hzlk5hx7qna5znr3q1crr0qb7h8yrv1v96pj015dh0kbdkdaba")))) | ||
| 6219 | (build-system go-build-system) | ||
| 6220 | (arguments | ||
| 6221 | (list | ||
| 6222 | ;; XXX: Check if the most of the tests may be enabled: | ||
| 6223 | ;; src/github.com/libp2p/go-cidranger/trie_test.go:557:8: cannot use | ||
| 6224 | ;; 4294967295 (untyped int constant) as int value in assignment | ||
| 6225 | ;; (overflows). | ||
| 6226 | #:tests? (and (target-64bit?) | ||
| 6227 | (not (%current-target-system))) | ||
| 6228 | #:import-path "github.com/libp2p/go-cidranger")) | ||
| 6229 | (native-inputs | ||
| 6230 | (list go-github-com-stretchr-testify)) | ||
| 6231 | (propagated-inputs | ||
| 6232 | (list go-github-com-ipfs-go-detect-race)) | ||
| 6233 | (home-page "https://github.com/libp2p/go-cidranger") | ||
| 6234 | (synopsis "Fast IP to CIDR lookup in Golang") | ||
| 6235 | (description | ||
| 6236 | "Fast IP to @url{https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing, | ||
| 6237 | CIDR} block(s) lookup using trie in Golang, inspired by | ||
| 6238 | @url{https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux, IPv4 | ||
| 6239 | route lookup Linux}. Possible use cases include detecting if a IP address is | ||
| 6240 | from published cloud provider CIDR blocks (e.g. 52.95.110.1 is contained in | ||
| 6241 | published AWS Route53 CIDR 52.95.110.0/24), IP routing rules, etc.") | ||
| 6242 | (license license:expat))) | ||
| 6243 | |||
| 6244 | (define-public go-github-com-libp2p-go-doh-resolver | 6206 | (define-public go-github-com-libp2p-go-doh-resolver |
| 6245 | (package | 6207 | (package |
| 6246 | (name "go-github-com-libp2p-go-doh-resolver") | 6208 | (name "go-github-com-libp2p-go-doh-resolver") |
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index a128b8fb610..645d1469c67 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | #:use-module (guix git-download) | 30 | #:use-module (guix git-download) |
| 31 | #:use-module (guix download) | 31 | #:use-module (guix download) |
| 32 | #:use-module (guix build-system go) | 32 | #:use-module (guix build-system go) |
| 33 | #:use-module (guix utils) | ||
| 33 | #:use-module (gnu packages databases) | 34 | #:use-module (gnu packages databases) |
| 34 | #:use-module (gnu packages gcc) | 35 | #:use-module (gnu packages gcc) |
| 35 | #:use-module (gnu packages golang) | 36 | #:use-module (gnu packages golang) |
| @@ -1843,6 +1844,44 @@ for distributing DNS subdomains with CA-signed TLS certificates to libp2p | |||
| 1843 | peers.") | 1844 | peers.") |
| 1844 | (license (list license:asl2.0 license:expat)))) | 1845 | (license (list license:asl2.0 license:expat)))) |
| 1845 | 1846 | ||
| 1847 | (define-public go-github-com-libp2p-go-cidranger | ||
| 1848 | (package | ||
| 1849 | (name "go-github-com-libp2p-go-cidranger") | ||
| 1850 | (version "1.1.0") | ||
| 1851 | (source | ||
| 1852 | (origin | ||
| 1853 | (method git-fetch) | ||
| 1854 | (uri (git-reference | ||
| 1855 | (url "https://github.com/libp2p/go-cidranger") | ||
| 1856 | (commit (string-append "v" version)))) | ||
| 1857 | (file-name (git-file-name name version)) | ||
| 1858 | (sha256 | ||
| 1859 | (base32 "05hzlk5hx7qna5znr3q1crr0qb7h8yrv1v96pj015dh0kbdkdaba")))) | ||
| 1860 | (build-system go-build-system) | ||
| 1861 | (arguments | ||
| 1862 | (list | ||
| 1863 | ;; XXX: Check if the most of the tests may be enabled: | ||
| 1864 | ;; src/github.com/libp2p/go-cidranger/trie_test.go:557:8: cannot use | ||
| 1865 | ;; 4294967295 (untyped int constant) as int value in assignment | ||
| 1866 | ;; (overflows). | ||
| 1867 | #:tests? (and (target-64bit?) | ||
| 1868 | (not (%current-target-system))) | ||
| 1869 | #:import-path "github.com/libp2p/go-cidranger")) | ||
| 1870 | (native-inputs | ||
| 1871 | (list go-github-com-stretchr-testify)) | ||
| 1872 | (propagated-inputs | ||
| 1873 | (list go-github-com-ipfs-go-detect-race)) | ||
| 1874 | (home-page "https://github.com/libp2p/go-cidranger") | ||
| 1875 | (synopsis "Fast IP to CIDR lookup in Golang") | ||
| 1876 | (description | ||
| 1877 | "Fast IP to @url{https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing, | ||
| 1878 | CIDR} block(s) lookup using trie in Golang, inspired by | ||
| 1879 | @url{https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux, IPv4 | ||
| 1880 | route lookup Linux}. Possible use cases include detecting if a IP address is | ||
| 1881 | from published cloud provider CIDR blocks (e.g. 52.95.110.1 is contained in | ||
| 1882 | published AWS Route53 CIDR 52.95.110.0/24), IP routing rules, etc.") | ||
| 1883 | (license license:expat))) | ||
| 1884 | |||
| 1846 | (define-public go-github-com-libp2p-go-libp2p | 1885 | (define-public go-github-com-libp2p-go-libp2p |
| 1847 | (package | 1886 | (package |
| 1848 | (name "go-github-com-libp2p-go-libp2p") | 1887 | (name "go-github-com-libp2p-go-libp2p") |
