Subject: [PATCH 07/21] gnu: Add rust-duct-0.10.

From: Jaeme Sifat <[email-masked]>
Date: Sat, 28 Oct 2023 18:43:50 -0400

* gnu/packages/crates-io.scm (rust-duct-0.10): New variable.

Signed-off-by: Jaeme Sifat <[email-masked]>
Change-Id: Idbe3851b19f7fdd6061f173f74f3855dfd78eaff
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7b0b913303..812a14f878 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22512,6 +22512,31 @@ (define-public rust-duct-0.13
      "A library for running child processes.")
     (license license:expat)))
 
+(define-public rust-duct-0.10
+  (package
+    (inherit rust-duct-0.13)
+    (name "rust-duct")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "duct" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "08x48npncnyf0f8yn223qjnwbiw7x0i2yb4ngfcyaksvgk0rhqhn"))))
+    (arguments
+     `(#:cargo-test-flags `("--" "--skip=test::test_capture_both"
+                            "--skip=test::test_pipe"
+                            "--skip=test::test_sh"
+                            "--skip=test::test_stderr"
+                            "--skip=test::test_swapping"
+                            "--skip=test::test_then")
+       #:cargo-inputs (("rust-lazycell" ,rust-lazycell-0.6)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-os-pipe" ,rust-os-pipe-0.6)
+                       ("rust-shared-child" ,rust-shared-child-0.3))
+       #:cargo-development-inputs (("rust-tempdir" ,rust-tempdir-0.3))))))
+
 (define-public rust-duct-0.8
   (package
     (inherit rust-duct-0.13)
-- 
2.41.0