~ruther/guix-local

4b6f6116f46b7e9c7bc48c2c495c87c92cf9da36 — Patrick Norton 4 months ago d0fd333
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 <sharlatanus@gmail.com>
1 files changed, 33 insertions(+), 0 deletions(-)

M gnu/packages/golang-compression.scm
M gnu/packages/golang-compression.scm => gnu/packages/golang-compression.scm +33 -0
@@ 5,6 5,7 @@
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2022 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
;;; Copyright © 2025 Patrick Norton <patrick.147.norton@gmail.com>
;;;
;;; 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")