diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2024-04-22 15:54:57 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2024-04-22 16:35:30 +0200 |
commit | 81d6fe1672cc2539094851ea7e020e7078a476e9 (patch) | |
tree | c66b3002e2e059182931b6d89545855356f7c0a9 /gnu | |
parent | b829aeefb8488586ffe6229526d806372815046e (diff) | |
download | guix-81d6fe1672cc2539094851ea7e020e7078a476e9.tar.gz guix-81d6fe1672cc2539094851ea7e020e7078a476e9.zip |
gnu: Add streambuf-shrinkwrap.
* gnu/packages/compression.scm (streambuf-shrinkwrap): New variable.
Change-Id: I3405b777e18cfd7b505f6de06019353d6c49a797
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/compression.scm | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 02a20e5c62..55784a70de 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -4,7 +4,7 @@ ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> ;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org> -;;; Copyright © 2015, 2016, 2017, 2018, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net> +;;; Copyright © 2015, 2016, 2017, 2018, 2020, 2021, 2022, 2024 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2015, 2017, 2018 Leo Famulari <leo@famulari.name> ;;; Copyright © 2015 Jeff Mickey <j@codemac.net> ;;; Copyright © 2015-2023 Efraim Flashner <efraim@flashner.co.il> @@ -491,6 +491,36 @@ compressed with pbzip2 can be decompressed with bzip2).") (license (license:non-copyleft "file://COPYING" "See COPYING in the distribution.")))) +;; We call this streambuf-shrinkwrap because a Python package with the name +;; "shrinkwrap" already exists. +(define-public streambuf-shrinkwrap + (package + (name "streambuf-shrinkwrap") + (version "1.2.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jonathonl/shrinkwrap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1819va068kp68ks52f7h0dq74xq059a4m86zls2k7dj5zxhs8qs2")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + '(list "-DSHRINKWRAP_PREFER_STATIC=OFF" + "-DBUILD_TESTS=ON"))) + (propagated-inputs (list bzip2 xz zlib `(,zstd "lib"))) + (native-inputs (list pkg-config)) + (home-page "https://github.com/jonathonl/shrinkwrap") + (synopsis "Wrapper around std::streambuf for zstd, xz, gzip, and bgzf files") + (description + "Shrinkwrap provides a @code{std::streambuf} wrapper for various compression +formats, including zstd, xz, gzip, and bgzf.") + (license license:expat))) + (define-public xz (package (name "xz") |