diff mbox series

[bug#72021,10/38] gnu: Add rust-infer-0.15.

Message ID 389447e04df33e72b3375747746fef0db27206b8.1720567734.git.w@wmeyer.eu
State New
Headers show
Series gnu: Add ouch. | expand

Commit Message

Wilko Meyer July 9, 2024, 11:36 p.m. UTC
* gnu/packages/crates-io.scm (rust-infer-0.15): New variable.
(rust-infer-0.2): Inherit from rust-infer-0.15.

Change-Id: I84b1823f4f071efa54396c7dd9648e77b3789473
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9c216157cb..f83e287db5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33904,19 +33904,21 @@  (define-public rust-indoc-impl-0.3
      "This package provides macros for use with the @code{rust-indoc}
 package.  It is obsolete for indoc versions > 1.")))
 
-(define-public rust-infer-0.2
+(define-public rust-infer-0.15
   (package
     (name "rust-infer")
-    (version "0.2.3")
+    (version "0.15.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "infer" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1b4ziqcv0d1wga5yfqf620dkgzijsdw3ylnzq61bfaxla2d85sb4"))))
+        (base32 "16d1b83h5m87h6kq4z8kwjrzll5dq6rijg2iz437m008m4nn4cyb"))))
     (build-system cargo-build-system)
-    (arguments `(#:tests? #false))      ;missing files
+    (arguments
+     `(#:tests? #false  ;missing files
+       #:cargo-inputs (("rust-cfb" ,rust-cfb-0.7))))
     (home-page "https://github.com/bojand/infer")
     (synopsis "Infer file types based on its magic number signature")
     (description
@@ -33924,6 +33926,21 @@  (define-public rust-infer-0.2
 signature.")
     (license license:expat)))
 
+(define-public rust-infer-0.2
+  (package
+    (inherit rust-infer-0.15)
+    (name "rust-infer")
+    (version "0.2.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "infer" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1b4ziqcv0d1wga5yfqf620dkgzijsdw3ylnzq61bfaxla2d85sb4"))))
+    (build-system cargo-build-system)
+    (arguments `(#:tests? #false))))
+
 (define-public rust-inferno-0.11
   (package
     (name "rust-inferno")