summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-12-27 18:45:43 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-12-27 19:53:04 +0100
commit7ece789d90c6c6a05a839ab060878be0778c0bac (patch)
treee322a16a9b27ae5d5576c0b9323990696f3dc0e4
parent8df6eb8f3cd69e2d66497fd39f1f5304bcc19920 (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")