From de104247cb8b99726c5f062e546ef7ae660ee405 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 30 Nov 2025 21:29:11 +0000 Subject: [PATCH] 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 daa74b016277bde6d67db397351a2213c41c5c40..6b6ad635b0b1d4f0fe3eeeb1925d9cf2e851d0ce 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")