diff mbox series

[bug#47948,29/49] gnu: Add rust-swc-ecma-transforms-compat.

Message ID 20210422102208.1154-29-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-swc-ecma-transforms-compat-0.13): New variable.
---
 gnu/packages/crates-io.scm | 43 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a9b240dc2a..41fb61669b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50801,3 +50801,46 @@  configuration file and/or environment variables.")
     (description
       "Wrappers for total ordering on floats")
     (license license:expat)))
+
+(define-public rust-swc-ecma-transforms-compat-0.13
+  (package
+    (name "rust-swc-ecma-transforms-compat")
+    (version "0.13.4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "swc_ecma_transforms_compat" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1c8crqm6ybi28sjjipajfxmvc143dz112j4ip3kilxv5xl6rj2n6"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-arrayvec" ,rust-arrayvec-0.5)
+         ("rust-fxhash" ,rust-fxhash-0.2)
+         ("rust-indexmap" ,rust-indexmap-1)
+         ("rust-is-macro" ,rust-is-macro-0.1)
+         ("rust-num-bigint" ,rust-num-bigint-0.2)
+         ("rust-ordered-float" ,rust-ordered-float-2)
+         ("rust-serde" ,rust-serde-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-transforms-base"
+          ,rust-swc-ecma-transforms-base-0.12)
+         ("rust-swc-ecma-transforms-macros"
+          ,rust-swc-ecma-transforms-macros-0.2)
+         ("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))))