diff mbox series

[bug#47948,46/49] gnu: Add rust-generator.

Message ID 20210422102208.1154-46-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:22 a.m. UTC
* gnu/packages/crates-io.scm (rust-generator-0.7): New variable.
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e1339b8835..c120c55d8b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51371,3 +51371,33 @@  configuration file and/or environment variables.")
       "Hypothesis-like property-based testing and shrinking.
 ")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-generator-0.7
+  (package
+    (name "rust-generator")
+    (version "0.7.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "generator" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1vhj3f0rf4mlh5vz7pz5rxmgry1cc62x21mf9ld1r292m2f2gnf1"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-cc" ,rust-cc-1)
+         ("rust-libc" ,rust-libc-0.2)
+         ("rust-log" ,rust-log-0.4)
+         ("rust-rustversion" ,rust-rustversion-1)
+         ("rust-winapi" ,rust-winapi-0.3))))
+    (home-page
+      "https://github.com/Xudong-Huang/generator-rs.git")
+    (synopsis "Stackfull Generator Library in Rust")
+    (description
+      "Stackfull Generator Library in Rust")
+    (license (list license:expat license:asl2.0))))