diff mbox series

[bug#47948,17/49] gnu: Add rust-from-variant.

Message ID 20210422102208.1154-17-dannym@scratchpost.org
State New
Headers show
Series [bug#47948,01/49] gnu: rust-byteorder: Update to 1.4.3. | expand

Commit Message

Danny Milosavljevic April 22, 2021, 10:21 a.m. UTC
* gnu/packages/crates-io.scm (rust-from-variant-0.1): New variable.
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0255b85a4d..eda844fed5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50367,3 +50367,34 @@  configuration file and/or environment variables.")
     (description
       "Macros for EqIgnoreSpan and TypeEq.")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-from-variant-0.1
+  (package
+    (name "rust-from-variant")
+    (version "0.1.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "from_variant" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0gf6gh6b9b01f7j0gwv3km1k6lily3banx47izlpniya4x866l89"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-pmutil" ,rust-pmutil-0.5)
+         ("rust-proc-macro2" ,rust-proc-macro2-1)
+         ("rust-swc-macros-common"
+          ,rust-swc-macros-common-0.3)
+         ("rust-syn" ,rust-syn-1))))
+    (home-page
+      "https://github.com/swc-project/swc.git")
+    (synopsis
+      "Automatically derive From impls for enums")
+    (description
+      "Automatically derive From impls for enums")
+    (license (list license:asl2.0 license:expat))))