Subject: [bug#70146] [PATCH 113/147] gnu: Add rust-socketpair-0.19.

From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Tue, 2 Apr 2024 18:05:05 +0200

* gnu/packages/crates-io.scm (rust-socketpair-0.19): New variable.

Change-Id: I051893a4272c98b6e85fe0aeb17b352032524705
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3117e6ef8d..6f650e37a4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -64761,6 +64761,34 @@ (define-public rust-socket2-0.3
        #:cargo-development-inputs
        (("rust-tempdir" ,rust-tempdir-0.3))))))
 
+(define-public rust-socketpair-0.19
+  (package
+    (name "rust-socketpair")
+    (version "0.19.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "socketpair" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0xln407qisgd1rrq54ff7b9dbm0mjwvkl17ry6bph4clz2vhvicx"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-async-std" ,rust-async-std-1)
+                       ("rust-io-extras" ,rust-io-extras-0.18)
+                       ("rust-io-lifetimes" ,rust-io-lifetimes-2)
+                       ("rust-rustix" ,rust-rustix-0.38)
+                       ("rust-tokio" ,rust-tokio-1)
+                       ("rust-uuid" ,rust-uuid-1)
+                       ("rust-windows-sys" ,rust-windows-sys-0.52))))
+    (home-page "https://github.com/sunfishcode/socketpair")
+    (synopsis "Cross-platform @code{socketpair} implementation")
+    (description "This package provides a library with a cross-platform
+implementation of the @code{socketpair} functionality.  On Windows emulates
+this interface using @code{CreateNamedPipe}.")
+    (license (list license:asl2.0 license:expat)))) ;; With LLVM exception.
+
 (define-public rust-socks-0.3
   (package
     (name "rust-socks")
-- 
2.41.0