aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-05-30 22:52:36 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-05-30 22:52:36 +0300
commitd1e77d69c1e04f402cec2e63553c001b1a4664ed (patch)
treee11308ccbbe2a4a6d95ebbe5a6c5ee022f04863c
parentfe6d003908fd8278de65761bc550240c520ef9f4 (diff)
downloadguix-d1e77d69c1e04f402cec2e63553c001b1a4664ed.tar
guix-d1e77d69c1e04f402cec2e63553c001b1a4664ed.tar.gz
gnu: rust-xml-rs-0.8: Fix build.
* gnu/packages/crates-io.scm (rust-xml-rs-0.8)[source]: Add snippet to change doctests into regular tests.
-rw-r--r--gnu/packages/crates-io.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2c4c6d4bb6..9a88708227 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -27443,7 +27443,14 @@ to XDG Base Directory specification")
(string-append name "-" version ".tar.gz"))
(sha256
(base32
- "0c905wsmk995xypxljpxzq6vv660r1pzgyrpsfiz13kw3hf0dzcs"))))
+ "0c905wsmk995xypxljpxzq6vv660r1pzgyrpsfiz13kw3hf0dzcs"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; 'doctest' isn't stable until rust-1.40
+ (substitute* "src/lib.rs"
+ (("\\(doctest") "(test"))
+ #t))))
(build-system cargo-build-system)
(arguments
`(#:cargo-development-inputs