guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 4b6f6116f46b7e9c7bc48c2c495c87c92cf9da36
Author: Patrick Norton <[email protected]>
AuthorDate: Mon Nov 24 13:20:10 2025 -0500

    gnu: Add go-github-com-buengese-sgzip.
    
    * gnu/packages/golang-web.scm (go-github-com-buengese-sgzip): New
    variable.
    
    Change-Id: Ie931fc51cac86694845f137bd096f92f14752b82
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/golang-compression.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/golang-compression.scm 
b/gnu/packages/golang-compression.scm
index b42ba90baa..55e15cab1a 100644
--- a/gnu/packages/golang-compression.scm
+++ b/gnu/packages/golang-compression.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2021 Efraim Flashner <[email protected]>
 ;;; Copyright © 2022 Sharlatan Hellseher <[email protected]>
 ;;; Copyright © 2024 Troy Figiel <[email protected]>
+;;; Copyright © 2025 Patrick Norton <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -67,6 +68,38 @@ the @code{c2go} tool at
 
@url{https://github.com/andybalholm/c2go,https://github.com/andybalholm/c2go}.";)
     (license license:expat)))
 
+(define-public go-github-com-buengese-sgzip
+  (package
+    (name "go-github-com-buengese-sgzip")
+    (version "0.1.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/buengese/sgzip";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "01gh3d9nnb5aljjyk3svhdbihhz9x448qh6xkl2fps8w1h2knw58"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/buengese/sgzip"))
+    (propagated-inputs
+     (list go-github-com-klauspost-compress))
+    (home-page "https://github.com/buengese/sgzip";)
+    (synopsis "Gzip implementation that allows seeking in the compressed file")
+    (description
+     "This package implements a seekable version of gzip-format compressed 
files,
+compliant with @url{https://rfc-editor.org/rfc/rfc1952.html, RFC 1952}.  This
+implementation allows seeking in the compressed file.  In normal gzip files
+that can only be achieved by decompressing from the start and discarding all
+data until the selected offset.  This gzip implementation works around this by
+creating a special metadata file that maps uncompressed blocks to compressed
+blocks allowing it to only read the compressed blocks required.")
+    (license (list license:bsd-3
+                   license:expat))))
+
 (define-public go-github-com-containerd-stargz-snapshotter-estargz
   (package
     (name "go-github-com-containerd-stargz-snapshotter-estargz")

Reply via email to