Subject: [bug#47948] [PATCH 31/49] gnu: Add rust-swc-ecma-transforms-base.

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

* gnu/packages/crates-io.scm (rust-swc-ecma-transforms-base-0.12): New variable.
---
 gnu/packages/crates-io.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index be62ea5689..448883bde8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50877,3 +50877,41 @@ configuration file and/or environment variables.")
     (description
       "Utilities for swc ecmascript ast nodes")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-swc-ecma-transforms-base-0.12
+  (package
+    (name "rust-swc-ecma-transforms-base")
+    (version "0.12.6")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "swc_ecma_transforms_base" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0z7sibjiysfci3yd2jz5djc4s3xg3m1ayljy7aksn9h139ccw1yz"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-fxhash" ,rust-fxhash-0.2)
+         ("rust-once-cell" ,rust-once-cell-1)
+         ("rust-phf" ,rust-phf-0.8)
+         ("rust-scoped-tls" ,rust-scoped-tls-1)
+         ("rust-smallvec" ,rust-smallvec-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-parser"
+          ,rust-swc-ecma-parser-0.54)
+         ("rust-swc-ecma-utils" ,rust-swc-ecma-utils-0.34)
+         ("rust-swc-ecma-visit" ,rust-swc-ecma-visit-0.29))))
+    (home-page
+      "https://github.com/swc-project/swc.git")
+    (synopsis
+      "rust port of babel and closure compiler.")
+    (description
+      "rust port of babel and closure compiler.")
+    (license (list license:asl2.0 license:expat))))
-- 
2.29.2