summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-05-11 10:03:36 +0300
committerEfraim Flashner <efraim@flashner.co.il>2022-05-11 10:03:36 +0300
commitf0ce201f499b075e1e0248d91c97c30469e84407 (patch)
treedd6aab21e75a7be588ea3114b2f5969b80d352fb /gnu/packages/crates-io.scm
parentef1d3d44d0f53917772cdb42f4dc380baec4eb7c (diff)
gnu: rust-proc-macro-error-1: Move code changes to snippet.
* gnu/packages/crates-io.scm (rust-proc-macro-error-1)[arguments]: Move code relaxing version requirements from custom phase ... [source]: ... to a snippet.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm21
1 files changed, 10 insertions, 11 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2b67033775..84f09f2da7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44645,11 +44645,17 @@ renamed in @file{Cargo.toml}.")
(uri (crate-uri "proc-macro-error" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1373bhxaf0pagd8zkyd03kkx6bchzf6g0dkwrwzsnal9z47lj9fs"))))
+ (base32 "1373bhxaf0pagd8zkyd03kkx6bchzf6g0dkwrwzsnal9z47lj9fs"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Ignore the "DO NOT BUMP" warning.
+ (substitute* "Cargo.toml"
+ (("=1.0.107") "^1.0.107")
+ (("=0.5.2") "^0.5.2"))))))
(build-system cargo-build-system)
(arguments
- ;; Tests fail with "extern crate test_crate; <-- can't find crate" error.
- `(#:tests? #f
+ `(#:tests? #f ; 'test_crate' folder not included in release.
#:cargo-inputs
(("rust-proc-macro-error-attr" ,rust-proc-macro-error-attr-1)
("rust-proc-macro2" ,rust-proc-macro2-1)
@@ -44659,14 +44665,7 @@ renamed in @file{Cargo.toml}.")
#: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))))))))
+ ("rust-trybuild" ,rust-trybuild-1))))
(home-page "https://gitlab.com/CreepySkeleton/proc-macro-error")
(synopsis "Drop-in replacement to panics in proc-macros")
(description