guix_mirror_bot pushed a commit to branch master
in repository guix.

commit de104247cb8b99726c5f062e546ef7ae660ee405
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Nov 30 21:29:11 2025 +0000

    gnu: Add go-github-com-snabb-httpreaderat.
    
    * gnu/packages/golang-web.scm (go-github-com-snabb-httpreaderat): New 
variable.
    
    Change-Id: Iadd955e3cd9017c8bb80f860f04047f6f3594ac1
---
 gnu/packages/golang-web.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index daa74b0162..6b6ad635b0 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -12234,6 +12234,41 @@ Version 2,Signed Signature Version 3, and Signed 
Signature Version 4.
 Supports S3 and STS.")
     (license license:expat)))
 
+(define-public go-github-com-snabb-httpreaderat
+  (package
+    (name "go-github-com-snabb-httpreaderat")
+    (version "1.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/snabb/httpreaderat";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0f9qdqyzk57mrizdbr049ynz8xpw6h3dlsb5ibbzlcryl0pbhzki"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/snabb/httpreaderat"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-examples
+            (lambda* (#:key tests? import-path #:allow-other-keys)
+              (with-directory-excursion (string-append "src/" import-path)
+                (delete-file-recursively "example")))))))
+    (propagated-inputs
+     (list go-github-com-pkg-errors))
+    (home-page "https://github.com/snabb/httpreaderat";)
+    (synopsis "Golang @code{io.ReaderAt} to make HTTP Range Requests")
+    (description
+     "This package implements @code{io.ReaderAt} that makes
+@url{https://tools.ietf.org/html/rfc7233, HTTP Range Requests}.  It can be
+used for example with \"archive/zip\" package in Go standard library. Together
+they can be used to access remote (HTTP accessible) ZIP archives without
+needing to download the whole archive file.")
+    (license license:expat)))
+
 (define-public go-github-com-sourcegraph-jsonrpc2
   (package
     (name "go-github-com-sourcegraph-jsonrpc2")

Reply via email to