aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-12-28 20:52:53 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-06 12:19:45 +0200
commit1e9a780240255fe83a057077d9f84379c573a0da (patch)
tree21caeb27b8f9f30a455cc7155590f49892672295
parentfb760f599009cff00767278856654aa3c2414fb9 (diff)
downloadguix-1e9a780240255fe83a057077d9f84379c573a0da.tar.gz
guix-1e9a780240255fe83a057077d9f84379c573a0da.zip
gnu: svd2rust: Update to 0.35.0.
* gnu/packages/rust-apps.scm (svd2rust): Update to 0.35.0. [arguments]: Add a snippet to allow for newer versions of dependencies. [cargo-inputs]: Add rust-irx-config-3, rust-regex-1, rust-serde-1, rust-serde-json-1, rust-serde-yaml-0.9, rust-svd-rs-0.14, rust-url-2. Replace rust-clap-2 with 4, rust-env-logger-0.7 with 0.11, rust-proc-macro2-0.4 with 1, rust-svd-parser-0.10 with 0.14, rust-syn-1 with 2. Remove rust-cast-0.2, rust-clap-conf-0.1. Change-Id: I6d937efcaabfd7bf4967a7a6cfdc004fba669eb2
-rw-r--r--gnu/packages/rust-apps.scm40
1 files changed, 24 insertions, 16 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 52d4cf9ca0..b67f06360c 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -3759,34 +3759,42 @@ Spotify Connect protocol, which includes the official Spotify mobile apps.")
(define-public svd2rust
(package
(name "svd2rust")
- (version "0.19.0")
+ (version "0.35.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "svd2rust" version))
- (file-name
- (string-append name "-" version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32
- "0q8slfgjfhpljzlk2myb0i538mfq99q1ljn398jm17r1q2pjjxhv"))))
+ (base32 "0fjkd9b0c2pfxa9czaxjg6bcqy1bnc6s423mv069krbpbyxf2a5g"))
+ (snippet
+ #~(begin (use-modules (guix build utils))
+ (substitute* "Cargo.toml"
+ (("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+ (string-append "\"^" version)))))))
(build-system cargo-build-system)
(arguments
- `(#:cargo-inputs
+ `(#:install-source? #f
+ #:cargo-inputs
(("rust-anyhow" ,rust-anyhow-1)
- ("rust-cast" ,rust-cast-0.2)
- ("rust-clap" ,rust-clap-2)
- ("rust-clap-conf" ,rust-clap-conf-0.1)
- ("rust-env-logger" ,rust-env-logger-0.7)
+ ("rust-clap" ,rust-clap-4)
+ ("rust-env-logger" ,rust-env-logger-0.11)
("rust-inflections" ,rust-inflections-1)
+ ("rust-irx-config" ,rust-irx-config-3)
("rust-log" ,rust-log-0.4)
- ("rust-proc-macro2" ,rust-proc-macro2-0.4)
+ ("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
- ("rust-svd-parser" ,rust-svd-parser-0.10)
- ("rust-syn" ,rust-syn-1)
- ("rust-thiserror" ,rust-thiserror-1))))
+ ("rust-regex" ,rust-regex-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-serde-yaml" ,rust-serde-yaml-0.9)
+ ("rust-svd-parser" ,rust-svd-parser-0.14)
+ ("rust-svd-rs" ,rust-svd-rs-0.14)
+ ("rust-syn" ,rust-syn-2)
+ ("rust-thiserror" ,rust-thiserror-1)
+ ("rust-url" ,rust-url-2))))
(home-page "https://github.com/rust-embedded/svd2rust/")
- (synopsis
- "Generate Rust register maps (`struct`s) from SVD files")
+ (synopsis "Generate Rust register maps (`struct`s) from SVD files")
(description
"This program can be used to generate Rust register maps (`struct`s) from SVD
files.")