unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: 72810@debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Subject: [bug#72810] [PATCH 4/4] gnu: Add go-github-com-libp2p-go-cidranger.
Date: Mon, 26 Aug 2024 00:23:37 +0300	[thread overview]
Message-ID: <ac37177e461f53375a20d5951db1b7b9d9f0260c.1724620806.git.poptsov.artyom@gmail.com> (raw)
In-Reply-To: <cover.1724620806.git.poptsov.artyom@gmail.com>

* gnu/packages/golang-web.scm (go-github-com-libp2p-go-cidranger): New variable.

Change-Id: I4e21f87c7b77ae8a5f7fa2e098330ec15bff079e
---
 gnu/packages/golang-web.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 288d81b7dd..ab5333cf6e 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2201,6 +2201,36 @@ (define-public go-github-com-koron-go-ssdp
 @acronym{Simple Service Discovery Protocol, SSDP}} library for Golang.")
     (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
+      #: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-asn-util
   (package
     (name "go-github-com-libp2p-go-libp2p-asn-util")
-- 
2.45.2





  parent reply	other threads:[~2024-08-25 21:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-25 21:22 [bug#72810] [PATCH 0/4] Add four libp2p libraries Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 1/4] gnu: Add go-github-com-libp2p-go-reuseport Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 2/4] gnu: Add go-github-com-libp2p-go-libp2p-asn-util Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 3/4] gnu: Add go-github-com-libp2p-go-yamux-v4 Artyom V. Poptsov
2024-08-25 21:23 ` Artyom V. Poptsov [this message]
2024-08-26 23:42 ` bug#72810: [PATCH 0/4] Add four libp2p libraries Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ac37177e461f53375a20d5951db1b7b9d9f0260c.1724620806.git.poptsov.artyom@gmail.com \
    --to=poptsov.artyom@gmail.com \
    --cc=72810@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).