diff mbox series

[bug#74234,PATCHv2,rust-team,18/20] gnu: Add rust-roxmltree-0.18.

Message ID da5f055ae143b9306059967b6955aa3d4578bfb6.1731018437.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74234,PATCHv2,rust-team,01/20] gnu: Add rust-ashpd-0.6. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:27 p.m. UTC
* gnu/packages/crates-io.scm (rust-roxmltree-0.18): New variable.

Change-Id: I7c6f8580e739a04f0a8df90801b6ebb49efc22ee
---
 gnu/packages/crates-io.scm | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 70744babf9..b3fad287ce 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -65848,10 +65848,31 @@  (define-public rust-roxmltree-0.19
        (sha256
         (base32 "0zs0q8hg5nnh91s1ib6r0fky7xm8ay63ayfa5i1afxxpwgalzl9w"))))))
 
-(define-public rust-roxmltree-0.14
+(define-public rust-roxmltree-0.18
   (package
     (inherit rust-roxmltree-0.19)
     (name "rust-roxmltree")
+    (version "0.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "roxmltree" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1n5ikvn00ciqkkr4hnch5ws1k3gfj8z50j3alv6wdf5nayj9bxfq"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (substitute* "Cargo.toml"
+                  ;; Patch xmlparser version
+                  (("0.13.5") "0.13.3"))))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-xmlparser" ,rust-xmlparser-0.13))))))
+
+(define-public rust-roxmltree-0.14
+  (package
+    (inherit rust-roxmltree-0.18)
+    (name "rust-roxmltree")
     (version "0.14.0")
     (source
      (origin