diff mbox series

[bug#69257,rust-team,v3,42/75] gnu: Add rust-g2gen-1.

Message ID d0f0133202b62b01290ce3e9c0622b591043ce63.1714820130.git.herman@rimm.ee
State New
Headers show
Series Finish packages. | expand

Commit Message

Herman Rimm May 4, 2024, 11:35 a.m. UTC
* gnu/packages/crates-io.scm (rust-g2gen-1): Add variable.
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d518241d13..fc071ecbb6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29243,6 +29243,30 @@  (define-public rust-fxhash-0.2
 derived from an internal hasher used in FireFox and Rustc.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-g2gen-1
+  (package
+    (name "rust-g2gen")
+    (version "1.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "g2gen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "03l243pnj9pabd0pi0jcf4fyrxxhddx8ixv31gchs9gwn8jpcb7w"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-g2poly" ,rust-g2poly-1)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/WanzenBug/g2p")
+    (synopsis "Macro to create finite field arithmetic types")
+    (description
+     "This package provides a macro to create types that implement fast
+finite field arithmetic.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-g2poly-1
   (package
     (name "rust-g2poly")