aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-03-14 12:27:18 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-07-19 00:41:23 +0300
commite1bf05f1dbd312e6c670b66cbdb2499e377c4c49 (patch)
tree485cf6aeec002808b6992a0f71fead06c211fa9b /gnu/packages
parent9aef802cc64f3aef3c442f36bb467d3933b83416 (diff)
downloadguix-e1bf05f1dbd312e6c670b66cbdb2499e377c4c49.tar.gz
guix-e1bf05f1dbd312e6c670b66cbdb2499e377c4c49.zip
gnu: Add rust-error-code-3.
* gnu/packages/crates-io.scm (rust-error-code-3): New variable. (rust-error-code-2): Inherit from rust-error-code-3. Change-Id: I102bb0bcdcf119f8dae1947c37cc535a61384b2d
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm29
1 files changed, 21 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fa663dbc32..85d2f32f13 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22161,8 +22161,28 @@ deserialized from environment variables.")
`(#:cargo-inputs
(("rust-backtrace" ,rust-backtrace-0.3))))))
+(define-public rust-error-code-3
+ (package
+ (name "rust-error-code")
+ (version "3.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "error-code" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0nqpbhi501z3ydaxg4kjyb68xcw025cj22prwabiky0xsljl8ix0"))))
+ (build-system cargo-build-system)
+ (home-page "https://github.com/DoumanAsh/error-code")
+ (synopsis "Alternative @code{Error} for Rust")
+ (description
+ "This package provides a simplified @code{Error} which works in
+@code{no_std} environment.")
+ (license license:boost1.0)))
+
(define-public rust-error-code-2
(package
+ (inherit rust-error-code-3)
(name "rust-error-code")
(version "2.3.0")
(source
@@ -22172,18 +22192,11 @@ deserialized from environment variables.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1zxi3pfrmj7hmv2bv94ax8vpylsfs49vwwp48c04wrr5mikma4dm"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-libc" ,rust-libc-0.2)
- ("rust-str-buf" ,rust-str-buf-1))))
- (home-page "")
- (synopsis "Alternative @code{Error} for Rust")
- (description
- "This package provides a simplified @code{Error} which works in
-@code{no_std} environment.")
- (license license:boost1.0)))
+ ("rust-str-buf" ,rust-str-buf-1))))))
(define-public rust-escaper-0.1
(package