From b81b5e85fe008f7defeb7a8f805f39cb26707f83 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 2 Aug 2023 19:46:35 +0300 Subject: gnu: rust-derivative-2: Update to 2.2.0. * gnu/packages/crates-io.scm (rust-derivative-2): Update to 2.2.0. [source]: Add snippet to allow newer version of input crate. [arguments]: Skip tests. --- gnu/packages/crates-io.scm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 60cefc4280..d8d27bd517 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -18906,17 +18906,24 @@ (define-public rust-der-parser-6 (define-public rust-derivative-2 (package (name "rust-derivative") - (version "2.1.1") + (version "2.2.0") (source (origin (method url-fetch) (uri (crate-uri "derivative" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "03rqx8j9q5nlrpr7w8cwwrvw916pr0ahzs3y8yln18cx6mh2nn6b")))) + (base32 "02vpb81wisk2zh1d5f44szzxamzinqgq2k8ydrfjj2wwkrgdvhzw")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "Cargo.toml" + (("version = \"([[:digit:]]+(\\.[[:digit:]]+)*), <.*\"" _ version) + (string-append "version = \"^" version "\""))))))) (build-system cargo-build-system) (arguments - `(#:cargo-inputs + `(#:tests? #f ; Tests expect a very narrow range for trybuild. + #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) ("rust-quote" ,rust-quote-1) ("rust-syn" ,rust-syn-1)) -- cgit v1.2.3