summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2022-01-07 15:27:06 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-01-19 14:04:50 +0100
commit29bd8ce17eeac3bcfa0c3a4e86d784c63135fffb (patch)
treea5e4b37d1f67db8be230cc84675dd38a13d8672a
parent753ba327c1df7ee2905ecf21ac78086233b7e447 (diff)
downloadguix-29bd8ce17eeac3bcfa0c3a4e86d784c63135fffb.tar.gz
gnu: Add rust-region-3.
* gnu/packages/crates-io.scm (rust-region-3): New variable.
(rust-region-2): Inherit from above.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/crates-io.scm34
1 files changed, 27 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 39cc435195..f706f7cf77 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44207,8 +44207,34 @@ uses finite automata and guarantees linear time matching on all inputs.")
        (("rust-quickcheck" ,rust-quickcheck-0.2)
         ("rust-rand" ,rust-rand-0.3))))))
 
+(define-public rust-region-3
+  (package
+    (name "rust-region")
+    (version "3.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "region" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0bji1p0c9abzh78ps5hs0ygg9pxkg7gjspll43lxr14q6v18kqbn"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-bitflags" ,rust-bitflags-1)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-mach" ,rust-mach-0.3)
+        ("rust-winapi" ,rust-winapi-0.3))))
+    (home-page "https://github.com/darfink/region-rs")
+    (synopsis "Library for manipulating memory regions")
+    (description
+     "This package provides a library for manipulating memory regions.")
+    (license license:expat)))
+
 (define-public rust-region-2
   (package
+    (inherit rust-region-3)
     (name "rust-region")
     (version "2.2.0")
     (source
@@ -44219,7 +44245,6 @@ uses finite automata and guarantees linear time matching on all inputs.")
         (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1q4szar3ms76552iygmhsvzhvvwkgz4l94qpx600vmyw5bm58zl7"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-bitflags" ,rust-bitflags-1)
@@ -44227,12 +44252,7 @@ uses finite automata and guarantees linear time matching on all inputs.")
         ("rust-mach" ,rust-mach-0.3)
         ("rust-winapi" ,rust-winapi-0.3))
        #:cargo-development-inputs
-       (("rust-memmap" ,rust-memmap-0.7))))
-    (home-page "https://github.com/darfink/region-rs")
-    (synopsis "Library for manipulating memory regions")
-    (description
-     "This package provides a library for manipulating memory regions.")
-    (license license:expat)))
+       (("rust-memmap" ,rust-memmap-0.7))))))
 
 (define-public rust-relative-path-1
   (package