summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-10-03 10:23:51 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-10-18 11:36:08 +0300
commit830b2f1470b905ed1a3eaa3c5af34a6325bc618f (patch)
treea6f0d5bf4979d67249eb7c8a8f9932dd8a1d3dce /gnu
parent72a5e1f4b2e3a8c2bee7cd4d924ff81e23630b74 (diff)
downloadguix-830b2f1470b905ed1a3eaa3c5af34a6325bc618f.tar.gz
gnu: Add rust-magic-string-0.3.
* gnu/packages/crates-io.scm (rust-magic-string-0.3): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index acacf6fe42..69d2f693c2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37937,6 +37937,33 @@ algorithms.  It supports CBC block cipher mode, PKCS5 padding and 64, 128,
 192 or 256-bits key length.")
     (license license:asl2.0)))
 
+(define-public rust-magic-string-0.3
+  (package
+    (name "rust-magic-string")
+    (version "0.3.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "magic-string" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "062fjfvq17qm8ymqzq4y6wk7a3fmxqq9ysg40yrcrxs3ik73703c"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-base64" ,rust-base64-0.13)
+        ("rust-napi" ,rust-napi-2)
+        ("rust-napi-derive" ,rust-napi-derive-2)
+        ("rust-regex" ,rust-regex-1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-vlq" ,rust-vlq-0.5))))
+    (home-page "https://github.com/h-a-n-a/magic-string-rs")
+    (synopsis "MagicString port driven by Rust and N-API")
+    (description
+     "This package provides a MagicString port driven by Rust and N-API.")
+    (license license:expat)))
+
 (define-public rust-maildir-0.5
   (package
     (name "rust-maildir")