* [bug#66563] [PATCH] gnu: Add rust-bzip2-rs
@ 2023-10-15 16:06 Stefan via Guix-patches via
2023-11-09 11:35 ` [bug#66563] [PATCH v2 0/1] " Steve George
0 siblings, 1 reply; 4+ messages in thread
From: Stefan via Guix-patches via @ 2023-10-15 16:06 UTC (permalink / raw)
To: 66563; +Cc: Efraim Flashner
* gnu/packages/crates-io.scm (rust-bzip2-rs-0.1): New variable.
* gnu/packages/crates-io.scm (rust-bytesize-1): Moved to group bzip2 related
packages.
---
gnu/packages/crates-io.scm | 80 +++++++++++++++++++++++++++-----------
1 file changed, 57 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 80fb92ec82..0271dba14a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32,6 +32,7 @@
;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
;;; Copyright © 2022 Paul Alesius <paul@unnservice.com>
;;; Copyright © 2023 Arnav Andrew Jose <arnav.jose@gmail.com>
+;;; Copyright © 2023 Stefan <stefan-guix@vodafonemail.de>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -9932,6 +9933,29 @@ (define-public rust-bytestring-0.1
"This package provides a UTF-8 encoded string with Bytes as a storage.")
(license (list license:expat license:asl2.0))))
+(define-public rust-bytesize-1
+ (package
+ (name "rust-bytesize")
+ (version "1.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "bytesize" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0w7wmmbcirxp5isza0i1lxq5d7r7f0z1pxbxl5f6s1n5m8vfqn3c"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-serde" ,rust-serde-1))))
+ (home-page "https://github.com/hyunsik/bytesize/")
+ (synopsis "Human-readable byte count representation library for Rust")
+ (description "ByteSize is an utility for human-readable byte count
+representation, with support for both SI and binary units.")
+ (license license:asl2.0)))
+
(define-public rust-bzip2-0.4
(package
(name "rust-bzip2")
@@ -9965,29 +9989,6 @@ (define-public rust-bzip2-0.4
exposed as Reader/Writer streams.")
(license (list license:expat license:asl2.0))))
-(define-public rust-bytesize-1
- (package
- (name "rust-bytesize")
- (version "1.1.0")
- (source
- (origin
- (method url-fetch)
- (uri (crate-uri "bytesize" version))
- (file-name
- (string-append name "-" version ".tar.gz"))
- (sha256
- (base32
- "0w7wmmbcirxp5isza0i1lxq5d7r7f0z1pxbxl5f6s1n5m8vfqn3c"))))
- (build-system cargo-build-system)
- (arguments
- `(#:cargo-inputs
- (("rust-serde" ,rust-serde-1))))
- (home-page "https://github.com/hyunsik/bytesize/")
- (synopsis "Human-readable byte count representation library for Rust")
- (description "ByteSize is an utility for human-readable byte count
-representation, with support for both SI and binary units.")
- (license license:asl2.0)))
-
(define-public rust-bzip2-0.3
(package
(inherit rust-bzip2-0.4)
@@ -10015,6 +10016,39 @@ (define-public rust-bzip2-0.3
("rust-rand" ,rust-rand-0.3)
("rust-tokio-core" ,rust-tokio-core-0.1))))))
+(define-public rust-bzip2-rs-0.1
+ (package
+ (name "rust-bzip2-rs")
+ (version "0.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "bzip2-rs" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0dgp83kixqrqj6q6574qr5zsfpbsiiwhqs3krhvsn4f8wkkmksxy"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (substitute* "Cargo.toml"
+ (("nightly = .*") ""))))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-crc32fast" ,rust-crc32fast-1)
+ ("rust-tinyvec" ,rust-tinyvec-1)
+ ("rust-rayon-core" ,rust-rayon-core-1))
+ #:cargo-development-inputs
+ (("rust-bzip2" ,rust-bzip2-0.4)
+ ("rust-criterion" ,rust-criterion-0.3)
+ ("rust-pretty_assertions" ,rust-pretty-assertions-0.6))))
+ (home-page "https://github.com/paolobarbolini/bzip2-rs")
+ (synopsis "Pure Rust bzip2 decompressor")
+ (description "Pure Rust 100% safe bzip2 decompressor.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-bzip2-sys-0.1
(package
(name "rust-bzip2-sys")
base-commit: a0d2ecde943bd1854ddbb7c0cad35a1fc64dc5ab
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#66563] [PATCH v2 0/1] Add rust-bzip2-rs
2023-10-15 16:06 [bug#66563] [PATCH] gnu: Add rust-bzip2-rs Stefan via Guix-patches via
@ 2023-11-09 11:35 ` Steve George
2023-11-09 11:35 ` [bug#66563] [PATCH v2 1/1] gnu: " Steve George
0 siblings, 1 reply; 4+ messages in thread
From: Steve George @ 2023-11-09 11:35 UTC (permalink / raw)
To: 66563; +Cc: stefan-guix, steve, efraim
Moved onto the Rust branch and tested it builds.
Stefan (1):
gnu: Add rust-bzip2-rs
gnu/packages/crates-io.scm | 84 ++++++++++++++++++++++++++------------
1 file changed, 59 insertions(+), 25 deletions(-)
base-commit: bbec79fd55ba8efe4cb015bd07e4f40fb7d252d1
--
2.41.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#66563] [PATCH v2 1/1] gnu: Add rust-bzip2-rs
2023-11-09 11:35 ` [bug#66563] [PATCH v2 0/1] " Steve George
@ 2023-11-09 11:35 ` Steve George
2023-12-04 9:54 ` bug#66563: " Efraim Flashner
0 siblings, 1 reply; 4+ messages in thread
From: Steve George @ 2023-11-09 11:35 UTC (permalink / raw)
To: 66563; +Cc: stefan-guix, efraim
From: Stefan <stefan-guix@vodafonemail.de>
* gnu/packages/crates-io.scm (rust-bzip2-rs-0.1): New variable.
* gnu/packages/crates-io.scm (rust-bytesize-1): Moved bzip2 alphabetically.
Change-Id: I41a7e5a00cb2feec6dcda0360044fb5a91b9e1fe
---
gnu/packages/crates-io.scm | 84 ++++++++++++++++++++++++++------------
1 file changed, 59 insertions(+), 25 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b15c1e5d9ab..606ed5aa297 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -35,6 +35,7 @@
;;; Copyright © 2023 Wilko Meyer <w@wmeyer.eu>
;;; Copyright © 2023 Jaeme Sifat <jaeme@runbox.com>
;;; Copyright © 2023 Steve George <steve@futurile.net>
+;;; Copyright © 2023 Stefan <stefan-guix@vodafonemail.de>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -10748,6 +10749,31 @@ (define-public rust-bytes-0.3
#:cargo-development-inputs
(("rust-rand" ,rust-rand-0.3))))))
+(define-public rust-bytesize-1
+ (package
+ (name "rust-bytesize")
+ (version "1.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "bytesize" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1k3aak70iwz4s2gsjbxf0ws4xnixqbdz6p2ha96s06748fpniqx3"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-serde" ,rust-serde-1))
+ #:cargo-development-inputs
+ (("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-toml" ,rust-toml-0.7))))
+ (home-page "https://github.com/hyunsik/bytesize/")
+ (synopsis "Human-readable byte count representation library for Rust")
+ (description "ByteSize is an utility for human-readable byte count
+representation, with support for both SI and binary units.")
+ (license license:asl2.0)))
+
(define-public rust-bytestring-0.1
(package
(name "rust-bytestring")
@@ -10805,31 +10831,6 @@ (define-public rust-bzip2-0.4
exposed as Reader/Writer streams.")
(license (list license:expat license:asl2.0))))
-(define-public rust-bytesize-1
- (package
- (name "rust-bytesize")
- (version "1.3.0")
- (source
- (origin
- (method url-fetch)
- (uri (crate-uri "bytesize" version))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32 "1k3aak70iwz4s2gsjbxf0ws4xnixqbdz6p2ha96s06748fpniqx3"))))
- (build-system cargo-build-system)
- (arguments
- `(#:cargo-inputs
- (("rust-serde" ,rust-serde-1))
- #:cargo-development-inputs
- (("rust-serde" ,rust-serde-1)
- ("rust-serde-json" ,rust-serde-json-1)
- ("rust-toml" ,rust-toml-0.7))))
- (home-page "https://github.com/hyunsik/bytesize/")
- (synopsis "Human-readable byte count representation library for Rust")
- (description "ByteSize is an utility for human-readable byte count
-representation, with support for both SI and binary units.")
- (license license:asl2.0)))
-
(define-public rust-bzip2-0.3
(package
(inherit rust-bzip2-0.4)
@@ -10857,6 +10858,39 @@ (define-public rust-bzip2-0.3
("rust-rand" ,rust-rand-0.3)
("rust-tokio-core" ,rust-tokio-core-0.1))))))
+(define-public rust-bzip2-rs-0.1
+ (package
+ (name "rust-bzip2-rs")
+ (version "0.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "bzip2-rs" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0dgp83kixqrqj6q6574qr5zsfpbsiiwhqs3krhvsn4f8wkkmksxy"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (substitute* "Cargo.toml"
+ (("nightly = .*") ""))))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-crc32fast" ,rust-crc32fast-1)
+ ("rust-tinyvec" ,rust-tinyvec-1)
+ ("rust-rayon-core" ,rust-rayon-core-1))
+ #:cargo-development-inputs
+ (("rust-bzip2" ,rust-bzip2-0.4)
+ ("rust-criterion" ,rust-criterion-0.3)
+ ("rust-pretty_assertions" ,rust-pretty-assertions-0.6))))
+ (home-page "https://github.com/paolobarbolini/bzip2-rs")
+ (synopsis "Pure Rust bzip2 decompressor")
+ (description "Pure Rust 100% safe bzip2 decompressor.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-bzip2-sys-0.1
(package
(name "rust-bzip2-sys")
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-12-04 9:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-15 16:06 [bug#66563] [PATCH] gnu: Add rust-bzip2-rs Stefan via Guix-patches via
2023-11-09 11:35 ` [bug#66563] [PATCH v2 0/1] " Steve George
2023-11-09 11:35 ` [bug#66563] [PATCH v2 1/1] gnu: " Steve George
2023-12-04 9:54 ` bug#66563: " Efraim Flashner
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.