diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-12-04 16:52:19 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-12-04 16:52:19 +0100 |
commit | abb0d8335a0be95590cbfb0a43ab760575147838 (patch) | |
tree | a0b39520720e605288e40a45e13077fab4019580 | |
parent | 22099658444b0b848210912a4a6a6f81e325f2e3 (diff) | |
download | guix-abb0d8335a0be95590cbfb0a43ab760575147838.tar.gz |
gnu: rust-proc-macro-error-1: Do not skip build.
* gnu/packages/crates-io.scm (rust-proc-macro-error-1)[arguments]: Do not skip build. Skip tests, tho. Add rust-serde-derive, rust-toml and rust-trybuild to development inputs. Fix some versions in Cargo.toml.
-rw-r--r-- | gnu/packages/crates-io.scm | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ec77af24b9..3ba101113a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -20235,13 +20235,25 @@ renamed in @file{Cargo.toml}.") (base32 "1373bhxaf0pagd8zkyd03kkx6bchzf6g0dkwrwzsnal9z47lj9fs")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t + ;; Tests fail with "extern crate test_crate; <-- can't find crate" error. + `(#:tests? #f #:cargo-inputs (("rust-proc-macro-error-attr" ,rust-proc-macro-error-attr-1) ("rust-proc-macro2" ,rust-proc-macro2-1) ("rust-quote" ,rust-quote-1) ("rust-syn" ,rust-syn-1) - ("rust-version-check" ,rust-version-check-0.9)))) + ("rust-version-check" ,rust-version-check-0.9)) + #:cargo-development-inputs + (("rust-serde-derive" ,rust-serde-derive-1) + ("rust-toml" ,rust-toml-0.5) + ("rust-trybuild" ,rust-trybuild-1)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-version-requirements + (lambda _ + (substitute* "Cargo.toml" + (("1.0.107") ,(package-version rust-serde-derive-1)) + (("0.5.2") ,(package-version rust-toml-0.5)))))))) (home-page "https://gitlab.com/CreepySkeleton/proc-macro-error") (synopsis "Drop-in replacement to panics in proc-macros") (description |