Subject: [bug#56663] [PATCH 19/24]: gnu: just: New package.

From: Jean Pierre De Jesus DIAZ <[email-masked]>
Date: Wed, 20 Jul 2022 12:20:56 +0000

Empty Message

From b3a2409e1321d0d26d51cdcb766a093f30356f3d Mon Sep 17 00:00:00 2001
From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Mon, 18 Jul 2022 01:05:38 +0200
Subject: [PATCH 19/24] gnu: rust-strum-0.24: New package.

* gnu/packages/crates-io.scm (rust-strum-0.24): New variable.
* gnu/packages/crates-io.scm (rust-strum-0.21)[inherit]: Inherit
  `rust-strum-0.24'.
---
 gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e57142e798..bd4e513de6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -59701,8 +59701,33 @@ (define-public rust-structopt-derive-0.2
      "Parse command line argument by defining a struct, derive crate.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-strum-0.24
+  (package
+    (name "rust-strum")
+    (version "0.24.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "strum" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0gz6cjhlps5idwasznklxdh2zsas6mxf99vr0n27j876q12n0gh6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; fails with import errors.
+       #:cargo-inputs
+       (("rust-phf" ,rust-phf-0.10)
+        ("rust-strum-macros" ,rust-strum-macros-0.24))))
+    (home-page "https://github.com/Peternator7/strum")
+    (synopsis "Set of traits for working with enums and strings")
+    (description
+     "Strum is a set of macros and traits for working with enums and strings
+easier in Rust.")
+    (license license:expat)))
+
 (define-public rust-strum-0.21
   (package
+    (inherit rust-strum-0.24)
     (name "rust-strum")
     (version "0.21.0")
     (source
@@ -59712,17 +59737,10 @@ (define-public rust-strum-0.21
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1qnd2by1zrwgx7li0hmwy7jbzjwz1ky697qjg85nga8zzny6py5a"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
-       (("rust-strum-macros" ,rust-strum-macros-0.21))))
-    (home-page "https://github.com/Peternator7/strum")
-    (synopsis "Set of traits for working with enums and strings")
-    (description
-     "Strum is a set of macros and traits for working with enums and strings
-easier in Rust.")
-    (license license:expat)))
+       (("rust-strum-macros" ,rust-strum-macros-0.21))))))
 
 (define-public rust-strum-0.20
   (package
-- 
2.36.1