guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/06: gnu: Add streambuf-shrinkwrap.


From: guix-commits
Subject: 04/06: gnu: Add streambuf-shrinkwrap.
Date: Mon, 22 Apr 2024 10:38:51 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 81d6fe1672cc2539094851ea7e020e7078a476e9
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Apr 22 15:54:57 2024 +0200

    gnu: Add streambuf-shrinkwrap.
    
    * gnu/packages/compression.scm (streambuf-shrinkwrap): New variable.
    
    Change-Id: I3405b777e18cfd7b505f6de06019353d6c49a797
---
 gnu/packages/compression.scm | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]