Subject: [bug#47948] [PATCH 37/49] gnu: Add rust-swc-ecma-codegen-macros.

From: Danny Milosavljevic <[email-masked]>
Date: Thu, 22 Apr 2021 12:21:56 +0200

* gnu/packages/crates-io.scm (rust-swc-ecma-codegen-macros-0.5): New variable.
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6a714cc265..e6ddd78bc9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51090,3 +51090,33 @@ configuration file and/or environment variables.")
     (synopsis "Feature-complete es2019 parser.")
     (description "Feature-complete es2019 parser.")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-swc-ecma-codegen-macros-0.5
+  (package
+    (name "rust-swc-ecma-codegen-macros")
+    (version "0.5.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "swc_ecma_codegen_macros" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1lr0mp1wfacpj6h153ki9cca62afqh3a4pxiwa4aaknb4s043bsi"))))
+    (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-quote" ,rust-quote-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 "Macros for swc_ecma_codegen.")
+    (description "Macros for swc_ecma_codegen.")
+    (license (list license:asl2.0 license:expat))))
-- 
2.29.2