Subject: [bug#47948] [PATCH 30/49] gnu: Add rust-swc-ecma-utils.

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

* gnu/packages/crates-io.scm (rust-swc-ecma-utils-0.34): New variable.
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 41fb61669b..be62ea5689 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50844,3 +50844,36 @@ configuration file and/or environment variables.")
     (description
       "rust port of babel and closure compiler.")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-swc-ecma-utils-0.34
+  (package
+    (name "rust-swc-ecma-utils")
+    (version "0.34.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "swc_ecma_utils" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0v522h8digar5c16gd4dgn07lz9sa1c0gr8llf2i9bqwj6xhjss7"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-once-cell" ,rust-once-cell-1)
+         ("rust-scoped-tls" ,rust-scoped-tls-1)
+         ("rust-swc-atoms" ,rust-swc-atoms-0.2)
+         ("rust-swc-common" ,rust-swc-common-0.10)
+         ("rust-swc-ecma-ast" ,rust-swc-ecma-ast-0.43)
+         ("rust-swc-ecma-visit" ,rust-swc-ecma-visit-0.29)
+         ("rust-unicode-xid" ,rust-unicode-xid-0.2))))
+    (home-page
+      "https://github.com/swc-project/swc.git")
+    (synopsis
+      "Utilities for swc ecmascript ast nodes")
+    (description
+      "Utilities for swc ecmascript ast nodes")
+    (license (list license:asl2.0 license:expat))))
-- 
2.29.2