summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-04 16:52:19 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-04 16:52:19 +0100
commitabb0d8335a0be95590cbfb0a43ab760575147838 (patch)
treea0b39520720e605288e40a45e13077fab4019580 /gnu
parent22099658444b0b848210912a4a6a6f81e325f2e3 (diff)
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.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm16
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