guix-commits
[Top][All Lists]
Advanced

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

07/08: gnu: Add rust-crossbeam-channel-0.4.


From: guix-commits
Subject: 07/08: gnu: Add rust-crossbeam-channel-0.4.
Date: Mon, 20 Jan 2020 10:55:10 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit b42899c29c35d97c9f860642759303781e41e7ad
Author: John Soo <address@hidden>
AuthorDate: Wed Jan 15 09:50:57 2020 -0800

    gnu: Add rust-crossbeam-channel-0.4.
    
    * gnu/packages/crates-io.scm (rust-crossbeam-channel-0.4): New variable.
    (rust-crossbeam-channel-0.3): Inherit from rust-crossbeam-channel-0.4.
    
    Signed-off-by: Efraim Flashner <address@hidden>
---
 gnu/packages/crates-io.scm | 45 ++++++++++++++++++++++++++++++++++-----------
 1 file changed, 34 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e1c421a..4c50ee5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1773,8 +1773,41 @@ intrinsics.")
     (description "Tools for concurrent programming.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-crossbeam-channel-0.4
+  (package
+    (name "rust-crossbeam-channel")
+    (version "0.4.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "crossbeam-channel" version))
+        (file-name
+         (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "135ncx9680afs8jkjz8g3iq3naay9rn7942gxrdg2n9m1cxrmv5c"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+        (("rust-crossbeam-utils" ,rust-crossbeam-utils-0.7))
+        #:cargo-development-inputs
+        (("rust-num-cpus" ,rust-num-cpus-1.10)
+         ("rust-rand" ,rust-rand-0.6)
+         ("rust-signal-hook" ,rust-signal-hook-0.1))))
+    (home-page
+     "https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel";)
+    (synopsis
+     "Multi-producer multi-consumer channels for message passing")
+    (description
+     "Multi-producer multi-consumer channels for message passing.")
+    (license (list license:expat
+                   license:asl2.0
+                   license:bsd-2))))
+
 (define-public rust-crossbeam-channel-0.3
   (package
+    (inherit rust-crossbeam-channel-0.4)
     (name "rust-crossbeam-channel")
     (version "0.3.8")
     (source
@@ -1786,7 +1819,6 @@ intrinsics.")
        (sha256
         (base32
          "0azpymyk0ld4akrjfy69ck5pzfgz1f2gb3smm2ywld92vsjd23hg"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -1794,16 +1826,7 @@ intrinsics.")
         ("rust-smallvec" ,rust-smallvec-0.6))
        #:cargo-development-inputs
        (("rust-rand" ,rust-rand-0.4)
-        ("rust-signal-hook" ,rust-signal-hook-0.1))))
-    (home-page
-     "https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel";)
-    (synopsis
-     "Multi-producer multi-consumer channels for message passing")
-    (description
-     "Multi-producer multi-consumer channels for message passing.")
-    (license (list license:expat
-                   license:asl2.0
-                   license:bsd-2))))
+        ("rust-signal-hook" ,rust-signal-hook-0.1))))))
 
 (define-public rust-crossbeam-deque-0.7
   (package



reply via email to

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