guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 65b1e820f074b31359192ccad1ab4f64700e481f
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Feb 14 21:50:09 2026 +0000
gnu: Add go-github-com-anchore-go-lzo.
* gnu/packages/golang-compression.scm (go-github-com-anchore-go-lzo): New
variable.
Change-Id: I0429f75c4ff34199d16e9f9cbf0ea34d37b6f0a7
---
gnu/packages/golang-compression.scm | 45 ++++++++++++++++++++++++++++++++++++-
1 file changed, 44 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-compression.scm
b/gnu/packages/golang-compression.scm
index 69bd5a3a7a..7c9778e0f6 100644
--- a/gnu/packages/golang-compression.scm
+++ b/gnu/packages/golang-compression.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2020 Danny Milosavljevic <[email protected]>
;;; Copyright © 2021 Arun Isaac <[email protected]>
;;; Copyright © 2021 Efraim Flashner <[email protected]>
-;;; Copyright © 2022 Sharlatan Hellseher <[email protected]>
+;;; Copyright © 2022-2026 Sharlatan Hellseher <[email protected]>
;;; Copyright © 2024 Troy Figiel <[email protected]>
;;; Copyright © 2025 Patrick Norton <[email protected]>
;;;
@@ -42,6 +42,49 @@
;;;
;;; Code:
+(define-public go-github-com-anchore-go-lzo
+ (package
+ (name "go-github-com-anchore-go-lzo")
+ (version "0.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/anchore/go-lzo")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1d8vi92s4h9spi3jsh6d4gri4g8qjpaa51f2b2sir6r32imymi68"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/anchore/go-lzo"
+ #:test-flags
+ ;; XXX: reader_utils_test.go:119: using native LZO
+ ;; validator...
+ ;; reader_test.go:95: compressed file
+ ;; testdata/cache/short-repeated.cpp.lzo using method cpp: 400 -> 39
+ ;; bytes reader_utils_test.go:147: lzo-wrapper decompression failed:
+ ;; signal: aborted Stderr: malloc(): invalid size (unsorted)
+ #~(list "-skip" (string-join
+ (list "Test_Decompression_Fixed/short-repeated"
+ "Test_Decompression_Fixed/long-repeated"
+ "Test_Decompression_Fixed/zeros")
+ "|"))))
+ (propagated-inputs
+ (list lzo))
+ (home-page "https://github.com/anchore/go-lzo")
+ (synopsis "LZO1X decompression library written in Go")
+ (description
+ "This package provides an implementation of the LZO1X decompression
+algorithm in Go. The implementation is derived from the
+@url{https://docs.kernel.org/staging/lzo.html, Linux kernel documentation for
+the LZO stream format} and the @url{https://github.com/AxioDL/lzokay,
+implementation from lzokay project} (MIT licensed). It includes a
+@code{Reader} for streaming decompressed data and a standalone
+@code{Decompress} function for use with byte slices.")
+ (license license:expat)))
+
(define-public go-github-com-andybalholm-brotli
(package
(name "go-github-com-andybalholm-brotli")