diff mbox series

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

Message ID 706ba2474119e9bab19865d4668599084c124918.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-g2p-1): Add variable.
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fc071ecbb6..5085cd699f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29267,6 +29267,34 @@  (define-public rust-g2gen-1
 finite field arithmetic.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-g2p-1
+  (package
+    (name "rust-g2p")
+    (version "1.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "g2p" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "17jip1izln1k6p694yns1qzapv89gdyzmx59fmvhbnnjqfyxjdpw"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.4)
+        ("rust-galois-2p8" ,rust-galois-2p8-0.1)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-reed-solomon-erasure" ,rust-reed-solomon-erasure-6)
+        ("rust-static-assertions" ,rust-static-assertions-1))
+       #:cargo-inputs (("rust-g2gen" ,rust-g2gen-1)
+                       ("rust-g2poly" ,rust-g2poly-1))))
+    (home-page "https://github.com/WanzenBug/g2p")
+    (synopsis "Create types that implement finite field arithmetic")
+    (description
+     "This package provides a way to generate types that implement fast
+finite field arithmetic.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-g2poly-1
   (package
     (name "rust-g2poly")