diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-12-26 21:26:10 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2025-01-06 12:19:34 +0200 |
commit | 5fd24a1d8d750a09308dc31bd3166a42037efc34 (patch) | |
tree | 5e2052d0fdc43786d1a6c4d02ff3c64b79ea667c | |
parent | d4dc0fde92f01386c72bc8592d4611d06a05957f (diff) |
gnu: rust-brotli: Move to (gnu packages crates-compression).
* gnu/packages/crates-io.scm (rust-brotli-7, rust-brotli-6,
rust-brotli-3, rust-brotli-decompressor-4, rust-brotli-decompressor-2,
rust-brotli-sys-0.3, rust-brotli2-0.3): Move from here ...
* gnu/packages/crates-compression.scm: ... to here.
Change-Id: I61968fe7600e3e2cf52a52f24b2527ba3e3c9236
-rw-r--r-- | gnu/local.mk | 1 | ||||
-rw-r--r-- | gnu/packages/crates-compression.scm | 194 | ||||
-rw-r--r-- | gnu/packages/crates-io.scm | 155 | ||||
-rw-r--r-- | gnu/packages/crates-tls.scm | 1 | ||||
-rw-r--r-- | gnu/packages/crates-web.scm | 1 | ||||
-rw-r--r-- | gnu/packages/python-compression.scm | 1 |
6 files changed, 199 insertions, 154 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 2b5c9007b0..077f09e683 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -213,6 +213,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/crates-apple.scm \ %D%/packages/crates-audio.scm \ %D%/packages/crates-check.scm \ + %D%/packages/crates-compression.scm \ %D%/packages/crates-crypto.scm \ %D%/packages/crates-database.scm \ %D%/packages/crates-io.scm \ diff --git a/gnu/packages/crates-compression.scm b/gnu/packages/crates-compression.scm new file mode 100644 index 0000000000..1676717858 --- /dev/null +++ b/gnu/packages/crates-compression.scm @@ -0,0 +1,194 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net> +;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr> +;;; Copyright © 2020, 2023, 2024 Efraim Flashner <efraim@flashner.co.il> +;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org> +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. + +;;; +;;; Please: Try to add new module packages in alphabetic order. +;;; + +(define-module (gnu packages crates-compression) + #:use-module (guix build-system cargo) + #:use-module (guix download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module (guix gexp) + #:use-module (gnu packages crates-check) + #:use-module (gnu packages crates-crypto) + #:use-module (gnu packages crates-io)) + +;;; +;;; Please: Try to add new module packages in alphabetic order. +;;; + +(define-public rust-brotli-7 + (package + (name "rust-brotli") + (version "7.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "brotli" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1g99xay61mds9d23fnfj5gfbd6g11gihfgs3y1abljwldzqvi5yc")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-alloc-no-stdlib" ,rust-alloc-no-stdlib-2) + ("rust-alloc-stdlib" ,rust-alloc-stdlib-0.2) + ("rust-brotli-decompressor" ,rust-brotli-decompressor-4) + ("rust-sha2" ,rust-sha2-0.10)))) + (home-page "https://github.com/dropbox/rust-brotli") + (synopsis "Brotli compressor and decompressor") + (description + "This package provides a brotli compressor and decompressor that with an +interface avoiding the rust stdlib. This makes it suitable for embedded devices +and kernels. It is designed with a pluggable allocator so that the standard +lib's allocator may be employed. The default build also includes a stdlib +allocator and stream interface. Disable this with --features=no-stdlib. All +included code is safe.") + (license (list license:bsd-3 license:expat)))) + +(define-public rust-brotli-6 + (package + (inherit rust-brotli-7) + (name "rust-brotli") + (version "6.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "brotli" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0swvf6cgbwhwrpd5y23vq6wipb6q2wqvi2j0hy0xa9lkplfrgxvl")))) + (arguments + `(#:cargo-inputs (("rust-alloc-no-stdlib" ,rust-alloc-no-stdlib-2) + ("rust-alloc-stdlib" ,rust-alloc-stdlib-0.2) + ("rust-brotli-decompressor" ,rust-brotli-decompressor-4) + ("rust-sha2" ,rust-sha2-0.10)))))) + +(define-public rust-brotli-3 + (package + (inherit rust-brotli-7) + (name "rust-brotli") + (version "3.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "brotli" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "14f34ml3i8qbnh4hhlv5r6j10bkx420gspsl1cgznl1wqrdx4h6n")))) + (arguments + `(#:cargo-inputs + (("rust-alloc-no-stdlib" ,rust-alloc-no-stdlib-2) + ("rust-alloc-stdlib" ,rust-alloc-stdlib-0.2) + ("rust-brotli-decompressor" ,rust-brotli-decompressor-2) + ("rust-sha2" ,rust-sha2-0.10)))))) + +(define-public rust-brotli-decompressor-4 + (package + (name "rust-brotli-decompressor") + (version "4.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "brotli-decompressor" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0qn39c7n6wm40i2bm0d3q2qslmaavlh804iv0ccbba4m80pbsics")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; not all test files included + #:cargo-inputs (("rust-alloc-no-stdlib" ,rust-alloc-no-stdlib-2) + ("rust-alloc-stdlib" ,rust-alloc-stdlib-0.2)))) + (home-page "https://github.com/dropbox/rust-brotli-decompressor") + (synopsis "Brotli decompressor") + (description "This package provides a brotli decompressor with no +dependency on the rust stdlib. This makes it suitable for embedded devices +and kernels.") + (license (list license:bsd-3 license:expat)))) + +(define-public rust-brotli-decompressor-2 + (package + (inherit rust-brotli-decompressor-4) + (name "rust-brotli-decompressor") + (version "2.5.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "brotli-decompressor" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0kyyh9701dwqzwvn2frff4ww0zibikqd1s1xvl7n1pfpc3z4lbjf")))) + (arguments + `(#:tests? #f ; not all test files included + #:cargo-inputs + (("rust-alloc-no-stdlib" ,rust-alloc-no-stdlib-2) + ("rust-alloc-stdlib" ,rust-alloc-stdlib-0.2)))))) + +(define-public rust-brotli-sys-0.3 + (package + (name "rust-brotli-sys") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "brotli-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1kdfdbcba6zwa13xpjwgiplblkdf6vigxjbwwp6l2ascbylxwia4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cc" ,rust-cc-1) + ("rust-libc" ,rust-libc-0.2)))) + (home-page "https://github.com/alexcrichton/brotli2-rs") + (synopsis "Raw bindings to libbrotli") + (description "This package provides raw bindings to libbrotli.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-brotli2-0.3 + (package + (name "rust-brotli2") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "brotli2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "13jnhpmfkqy2xar4lxrsk3rx3i12bgnarnsxq4arhc6yxb1kdc0c")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-brotli-sys" ,rust-brotli-sys-0.3) + ("rust-libc" ,rust-libc-0.2)) + #:cargo-development-inputs + (("rust-quickcheck" ,rust-quickcheck-0.4)))) + (home-page "https://github.com/alexcrichton/brotli2-rs") + (synopsis "Rust bindings to compression library libbrotli") + (description + "This package provides bindings to libbrotli to provide brotli +decompression and compression to Rust.") + (license (list license:expat license:asl2.0)))) + diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 0651e296cb..3f04fb2659 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -87,6 +87,7 @@ #:use-module (gnu packages crates-apple) #:use-module (gnu packages crates-audio) #:use-module (gnu packages crates-check) + #:use-module (gnu packages crates-compression) #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-database) #:use-module (gnu packages crates-graphics) @@ -9625,160 +9626,6 @@ Bresenham's line algorithm.") @code{mpsc} pattern to enable broadcasting items.") (license (list license:expat license:asl2.0)))) -(define-public rust-brotli-7 - (package - (name "rust-brotli") - (version "7.0.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "brotli" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1g99xay61mds9d23fnfj5gfbd6g11gihfgs3y1abljwldzqvi5yc")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-alloc-no-stdlib" ,rust-alloc-no-stdlib-2) - ("rust-alloc-stdlib" ,rust-alloc-stdlib-0.2) - ("rust-brotli-decompressor" ,rust-brotli-decompressor-4) - ("rust-sha2" ,rust-sha2-0.10)))) - (home-page "https://github.com/dropbox/rust-brotli") - (synopsis "Brotli compressor and decompressor") - (description - "This package provides a brotli compressor and decompressor that with an -interface avoiding the rust stdlib. This makes it suitable for embedded devices -and kernels. It is designed with a pluggable allocator so that the standard -lib's allocator may be employed. The default build also includes a stdlib -allocator and stream interface. Disable this with --features=no-stdlib. All -included code is safe.") - (license (list license:bsd-3 license:expat)))) - -(define-public rust-brotli-6 - (package - (inherit rust-brotli-7) - (name "rust-brotli") - (version "6.0.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "brotli" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0swvf6cgbwhwrpd5y23vq6wipb6q2wqvi2j0hy0xa9lkplfrgxvl")))) - (arguments - `(#:cargo-inputs (("rust-alloc-no-stdlib" ,rust-alloc-no-stdlib-2) - ("rust-alloc-stdlib" ,rust-alloc-stdlib-0.2) - ("rust-brotli-decompressor" ,rust-brotli-decompressor-4) - ("rust-sha2" ,rust-sha2-0.10)))))) - -(define-public rust-brotli-3 - (package - (inherit rust-brotli-7) - (name "rust-brotli") - (version "3.5.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "brotli" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "14f34ml3i8qbnh4hhlv5r6j10bkx420gspsl1cgznl1wqrdx4h6n")))) - (arguments - `(#:cargo-inputs - (("rust-alloc-no-stdlib" ,rust-alloc-no-stdlib-2) - ("rust-alloc-stdlib" ,rust-alloc-stdlib-0.2) - ("rust-brotli-decompressor" ,rust-brotli-decompressor-2) - ("rust-sha2" ,rust-sha2-0.10)))))) - -(define-public rust-brotli-decompressor-4 - (package - (name "rust-brotli-decompressor") - (version "4.0.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "brotli-decompressor" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0qn39c7n6wm40i2bm0d3q2qslmaavlh804iv0ccbba4m80pbsics")))) - (build-system cargo-build-system) - (arguments - `(#:tests? #f ; not all test files included - #:cargo-inputs (("rust-alloc-no-stdlib" ,rust-alloc-no-stdlib-2) - ("rust-alloc-stdlib" ,rust-alloc-stdlib-0.2)))) - (home-page "https://github.com/dropbox/rust-brotli-decompressor") - (synopsis "Brotli decompressor") - (description "This package provides a brotli decompressor with no -dependency on the rust stdlib. This makes it suitable for embedded devices -and kernels.") - (license (list license:bsd-3 license:expat)))) - -(define-public rust-brotli-decompressor-2 - (package - (inherit rust-brotli-decompressor-4) - (name "rust-brotli-decompressor") - (version "2.5.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "brotli-decompressor" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0kyyh9701dwqzwvn2frff4ww0zibikqd1s1xvl7n1pfpc3z4lbjf")))) - (arguments - `(#:tests? #f ; not all test files included - #:cargo-inputs - (("rust-alloc-no-stdlib" ,rust-alloc-no-stdlib-2) - ("rust-alloc-stdlib" ,rust-alloc-stdlib-0.2)))))) - -(define-public rust-brotli-sys-0.3 - (package - (name "rust-brotli-sys") - (version "0.3.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "brotli-sys" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1kdfdbcba6zwa13xpjwgiplblkdf6vigxjbwwp6l2ascbylxwia4")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cc" ,rust-cc-1) - ("rust-libc" ,rust-libc-0.2)))) - (home-page "https://github.com/alexcrichton/brotli2-rs") - (synopsis "Raw bindings to libbrotli") - (description "This package provides raw bindings to libbrotli.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-brotli2-0.3 - (package - (name "rust-brotli2") - (version "0.3.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "brotli2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "13jnhpmfkqy2xar4lxrsk3rx3i12bgnarnsxq4arhc6yxb1kdc0c")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-brotli-sys" ,rust-brotli-sys-0.3) - ("rust-libc" ,rust-libc-0.2)) - #:cargo-development-inputs - (("rust-quickcheck" ,rust-quickcheck-0.4)))) - (home-page "https://github.com/alexcrichton/brotli2-rs") - (synopsis "Rust bindings to compression library libbrotli") - (description - "This package provides bindings to libbrotli to provide brotli -decompression and compression to Rust.") - (license (list license:expat license:asl2.0)))) - (define-public rust-browserslist-rs-0.6 (package (name "rust-browserslist-rs") diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm index 74d5132e7d..36737998a9 100644 --- a/gnu/packages/crates-tls.scm +++ b/gnu/packages/crates-tls.scm @@ -35,6 +35,7 @@ #:use-module (gnu packages cmake) #:use-module (gnu packages crates-apple) #:use-module (gnu packages crates-check) + #:use-module (gnu packages crates-compression) #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-web) diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index 8bff02d462..edc13a8840 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -37,6 +37,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages crates-apple) #:use-module (gnu packages crates-check) + #:use-module (gnu packages crates-compression) #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-database) #:use-module (gnu packages crates-io) diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 74beeeb9d8..5b994d408f 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm @@ -40,6 +40,7 @@ #:use-module (gnu packages) #:use-module (gnu packages libffi) #:use-module (gnu packages compression) + #:use-module (gnu packages crates-compression) #:use-module (gnu packages crates-io) #:use-module (gnu packages cmake) #:use-module (gnu packages check) |