diff mbox series

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

Message ID 20210422102208.1154-25-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-optimization-0.15): New variable.
---
 gnu/packages/crates-io.scm | 44 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 419d3d11c8..2eb39b4458 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50660,3 +50660,47 @@  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-transforms-optimization-0.15
+  (package
+    (name "rust-swc-ecma-transforms-optimization")
+    (version "0.15.5")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri
+               "swc_ecma_transforms_optimization"
+               version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0gfxh99168j0wbd3qzig7yf82s37xycv85pa6x9hk11y40ipc61z"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-dashmap" ,rust-dashmap-4)
+         ("rust-fxhash" ,rust-fxhash-0.2)
+         ("rust-indexmap" ,rust-indexmap-1)
+         ("rust-log" ,rust-log-0.4)
+         ("rust-once-cell" ,rust-once-cell-1)
+         ("rust-retain-mut" ,rust-retain-mut-0.1)
+         ("rust-serde-json" ,rust-serde-json-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-transforms-base"
+          ,rust-swc-ecma-transforms-base-0.12)
+         ("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))))