aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-07-19 13:09:04 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-07-22 22:47:22 +0100
commitf1af3a542c4ec71e16580f9af92a2429601aec32 (patch)
treef079263ed3cbc0d1109524e8dd7930c267a24331 /gnu/packages
parent31fed85aa853cb409166f587fc82a358076b578e (diff)
downloadguix-f1af3a542c4ec71e16580f9af92a2429601aec32.tar.gz
guix-f1af3a542c4ec71e16580f9af92a2429601aec32.zip
gnu: Add go-github-com-mholt-archiver-v3.
* gnu/packages/golang-compression.scm (go-github-com-mholt-archiver-v3, go-arc): New variables. Change-Id: I37f628de21475f98acb10dcff86780b697bba839
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/golang-compression.scm94
1 files changed, 94 insertions, 0 deletions
diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm
index c4465f1bcd..be7af6f894 100644
--- a/gnu/packages/golang-compression.scm
+++ b/gnu/packages/golang-compression.scm
@@ -218,6 +218,86 @@ library. This is beneficial for large amounts of data, say more than 1MB at a
time, as otherwise the internal gzip library will likely be faster.")
(license (list license:bsd-3 license:expat))))
+(define-public go-github-com-mholt-archiver-v3
+ (package
+ (name "go-github-com-mholt-archiver-v3")
+ (version "3.5.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mholt/archiver")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1py186hfy4p69wghqmbsyi1r3xvw1nyl55pz8f97a5qhmwxb3mwp"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/mholt/archiver/v3"))
+ (propagated-inputs
+ (list go-github-com-andybalholm-brotli
+ go-github-com-dsnet-compress
+ go-github-com-golang-snappy
+ go-github-com-klauspost-compress
+ go-github-com-klauspost-pgzip
+ go-github-com-nwaples-rardecode
+ go-github-com-pierrec-lz4-v4
+ go-github-com-ulikunitz-xz
+ go-github-com-xi2-xz))
+ (home-page "https://github.com/mholt/archiver")
+ (synopsis "Multi format archiver Golang library and CLI commad")
+ (description
+ "Package archiver facilitates convenient, cross-platform, high-level
+archival and compression operations for a variety of formats and compression
+algorithms.
+
+Features:
+@itemize
+@item stream-oriented APIs
+@item automatically identify archive and compression formats
+@item traverse directories, archive files, and any other file uniformly as
+@code{io/fs} file systems
+@item compress and decompress files
+@item create and extract archive files
+@item walk or traverse into archive files
+@item extract only specific files from archives
+@item insert (append) into .tar and .zip archives
+@item read from password-protected 7-Zip files
+@item numerous archive and compression formats supported
+@item extensible (add more formats just by registering them)
+@item cross-platform, static binary
+@item pure Golang (no cgo)
+@item multithreaded Gzip
+@item adjust compression levels
+@item automatically add compressed files to zip archives without
+re-compressing
+@item open password-protected rar archives
+@end itemize
+
+Supported compression formats:
+@itemize
+@item brotli (.br)
+@item bzip2 (.bz2)
+@item flate (.zip)
+@item gzip (.gz)
+@item lz4 (.lz4)
+@item lzip (.lz)
+@item snappy (.sz)
+@item xz (.xz)
+@item zlib (.zz)
+@item zstandard (.zst)
+@end itemize
+
+Supported archive formats:
+@itemize
+@item .zip
+@item .tar (including any compressed variants like .tar.gz)
+@item .rar (read-only)
+@item .7z (read-only)
+@end itemize")
+ (license license:expat)))
+
(define-public go-github-com-nwaples-rardecode
(package
(name "go-github-com-nwaples-rardecode")
@@ -363,6 +443,20 @@ any dependency on any C code.")
;;; Executables:
;;;
+(define-public go-arc
+ (package
+ (inherit go-github-com-mholt-archiver-v3)
+ (name "go-arc")
+ (arguments
+ (list
+ #:install-source? #f
+ #:import-path "github.com/mholt/archiver/cmd/arc"
+ #:unpack-path "github.com/mholt/archiver"))
+ (description
+ (string-append (package-description go-github-com-mholt-archiver-v3)
+ "\nThis package provides an command line interface (CLI)
+tool."))))
+
(define-public go-lz4c
(package
(inherit go-github-com-pierrec-lz4-v4)