Subject: [PATCH 39/49] gnu: Add rust-swc-atoms.

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

* gnu/packages/crates-io.scm (rust-swc-atoms-0.2): New variable.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 69605cbd07..c4a51a5cc1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51156,3 +51156,30 @@ configuration file and/or environment variables.")
     (description
       "Ecmascript code generator for the swc project.")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-swc-atoms-0.2
+  (package
+    (name "rust-swc-atoms")
+    (version "0.2.6")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "swc_atoms" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1c6j0ifknq8k3cgvapry8i4wy7l5ds61mnngba75dvpcnq6bgkbv"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-string-cache" ,rust-string-cache-0.8)
+         ("rust-string-cache-codegen"
+          ,rust-string-cache-codegen-0.5))))
+    (home-page
+      "https://github.com/swc-project/swc.git")
+    (synopsis "Atoms for the swc project.")
+    (description "Atoms for the swc project.")
+    (license (list license:asl2.0 license:expat))))
-- 
2.29.2