guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#44492] [PATCH v6 05/51] gnu: Add rust-twoway-0.2.


From: Leo Prikler
Subject: [bug#44492] [PATCH v6 05/51] gnu: Add rust-twoway-0.2.
Date: Mon, 15 Mar 2021 18:13:30 +0100

* gnu/packages/crates-io.scm (rust-twoway-0.2): New variable.
---
 gnu/packages/crates-io.scm | 39 ++++++++++++++++++++++++++++++--------
 1 file changed, 31 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 78cdc54718..91bcbacfae 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45873,8 +45873,38 @@ design abstracts away all the internals of the 
WebSocket protocol but still
 makes them accessible for those who wants full control over the network.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-twoway-0.2
+  (package
+    (name "rust-twoway")
+    (version "0.2.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "twoway" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1g55kf4rx0q682fvzxdixqihmlbamn5ms2yqvcm92fny21chfh3b"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build? #t
+        #:cargo-inputs
+        (("rust-galil-seiferas" ,rust-galil-seiferas-0.1)
+         ("rust-jetscii" ,rust-jetscii-0.3)
+         ("rust-memchr" ,rust-memchr-2)
+         ("rust-unchecked-index"
+          ,rust-unchecked-index-0.2))))
+    (home-page "https://github.com/bluss/twoway";)
+    (synopsis "Fast substring search for strings and byte strings")
+    (description
+     "This package provides a fast substring search for strings and byte
+strings.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-twoway-0.1
   (package
+    (inherit rust-twoway-0.2)
     (name "rust-twoway")
     (version "0.1.8")
     (source
@@ -45884,20 +45914,13 @@ makes them accessible for those who wants full 
control over the network.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1lbf64snscr3vz71jbl6i2c8zr2ndsiqbk6316z39fj1a8mipcar"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-galil-seiferas" ,rust-galil-seiferas-0.1)
         ("rust-jetscii" ,rust-jetscii-0.3)
         ("rust-memchr" ,rust-memchr-2)
-        ("rust-unchecked-index" ,rust-unchecked-index-0.2))))
-    (home-page "https://github.com/bluss/twoway";)
-    (synopsis "Fast substring search for strings and byte strings")
-    (description
-     "This package provides a fast substring search for strings and byte
-strings.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-unchecked-index" ,rust-unchecked-index-0.2))))))
 
 (define-public rust-typeable-0.1
   (package
-- 
2.30.2






reply via email to

[Prev in Thread] Current Thread [Next in Thread]