Subject: [PATCH 1/4] gnu: Add go-github-com-libp2p-go-doh-resolver.

From: "Artyom V. Poptsov" <[email-masked]>
Date: Wed, 28 Aug 2024 00:09:33 +0300

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

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

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 9943891502..b3e583da39 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2698,6 +2698,34 @@ (define-public go-github-com-libp2p-go-cidranger
 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
+  (package
+    (name "go-github-com-libp2p-go-doh-resolver")
+    (version "0.4.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/libp2p/go-doh-resolver")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0asni7f3gd65bjfqz99fqchz9y75cpgmfwkkhsbq0y2dydagw666"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/libp2p/go-doh-resolver"))
+    (native-inputs (list go-github-com-stretchr-testify))
+    (propagated-inputs (list go-github-com-miekg-dns
+                             go-github-com-multiformats-go-multiaddr-dns
+                             go-github-com-ipfs-go-log-v2))
+    (home-page "https://github.com/libp2p/go-doh-resolver")
+    (synopsis "DNS over HTTPS resolver")
+    (description
+     "@url{https://datatracker.ietf.org/doc/html/rfc8484, DNS over HTTPS}
+resolver for Golang.")
+    (license license:expat)))
+
 (define-public go-github-com-libp2p-go-flow-metrics
   (package
     (name "go-github-com-libp2p-go-flow-metrics")
-- 
2.45.2