From 30e087c3319569409cabf2a933d4523c14d1eecd Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 4 Jan 2024 11:49:23 +0200 Subject: [PATCH] gnu: Add rust-rustyline-derive-0.9. * gnu/packages/crates-io.scm (rust-rustyline-derive-0.9): New variable. (rust-rustyline-derive-0.3): Inherit from rust-rustyline-derive-0.9. Change-Id: Ie09c4331c7178e93c17d1fa45c67f390d52e6e47 --- gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f7b6edc223..ec6e3ff4c9 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -62165,28 +62165,43 @@ (define-public rust-rustyline-6 ("rust-rustyline-derive" ,rust-rustyline-derive-0.3) ("rust-tempfile" ,rust-tempfile-3)))))) +(define-public rust-rustyline-derive-0.9 + (package + (name "rust-rustyline-derive") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "rustyline-derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0hvaj1n0k7ys8iqfxvymmakv9aqqpvm53hagw55jw7954xaaycjs")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-2)))) + (home-page "https://github.com/kkawakam/rustyline") + (synopsis "Rustyline macros implementation in Rust") + (description "This package provides Rustyline macros implementation in Rust.") + (license license:expat))) + (define-public rust-rustyline-derive-0.3 (package + (inherit rust-rustyline-derive-0.9) (name "rust-rustyline-derive") (version "0.3.1") (source (origin (method url-fetch) (uri (crate-uri "rustyline-derive" version)) - (file-name - (string-append name "-" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 - "0daj9szvfi442vj2fhm7qb92wmzv7g75qsjq9a6ycnqac4lhx9al")))) - (build-system cargo-build-system) + (base32 "0daj9szvfi442vj2fhm7qb92wmzv7g75qsjq9a6ycnqac4lhx9al")))) (arguments `(#:cargo-inputs (("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1)))) - (home-page "https://github.com/kkawakam/rustyline") - (synopsis "Rustyline macros implementation in Rust") - (description "This package provides Rustyline macros implementation in Rust.") - (license license:expat))) + ("rust-syn" ,rust-syn-1)))))) (define-public rust-rkyv-0.7 (package