summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-12-27 18:45:43 +0100
committerLeo Famulari <leo@famulari.name>2021-12-28 14:10:21 -0500
commit74a977d7a7faa39cfa645efb92d325e22df22a54 (patch)
tree4b6e36477bd4b707152d11cf3297a17f60bb678b
parentb8810c80ef2e55b3fa02e8e8e5722462220c6957 (diff)
gnu: Add rust-riscv-0.7.
* gnu/packages/crates-io.scm (rust-riscv-0.7): (rust-riscv-target-0.1): New variables.
-rw-r--r--gnu/packages/crates-io.scm46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4d1f0b9671..e6e19d5c75 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43545,6 +43545,52 @@ functionality as retain but gives mutable borrow to the predicate.")
;; build dependencies
("rust-cc" ,rust-cc-1))))))
+(define-public rust-riscv-0.7
+ (package
+ (name "rust-riscv")
+ (version "0.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "riscv" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1fla10m2qkcf7zqw91rrribpdaavkv6qbbzjz9q2n09igbfwq1v9"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-bare-metal" ,rust-bare-metal-1)
+ ("rust-bit-field" ,rust-bit-field-0.10)
+ ("rust-riscv-target" ,rust-riscv-target-0.1))))
+ (home-page "https://github.com/rust-embedded/riscv")
+ (synopsis "Low level access to RISC-V processors")
+ (description "This crate provides low level access to RISC-V processors.")
+ (license license:isc)))
+
+(define-public rust-riscv-target-0.1
+ (package
+ (name "rust-riscv-target")
+ (version "0.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "riscv-target" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "08pj6f1sbddd6idjn8c1wv121bzikw9qvzhcl9icz822va697al8"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-regex" ,rust-regex-1))))
+ (home-page "https://github.com/ilya-epifanov/riscv-target")
+ (synopsis "RISC-V target string manipulation utilities")
+ (description "This package provides RISC-V target string manipulation
+utilities.")
+ (license license:isc)))
+
(define-public rust-rle-decode-fast-1
(package
(name "rust-rle-decode-fast")