Subject: [bug#69803] [PATCH rust-team 15/37] gnu: rust-nix-0.26: Update to 0.26.4.

From: Herman Rimm <[email-masked]>
Date: Thu, 14 Mar 2024 22:16:16 +0100

* gnu/packages/crates-io.scm (rust-nix-0.26): Update.
[version]: Bump from 0.26.2 to 0.26.4.
[origin]: Update hash, disable panicking test with snippet.
[arguments]: Build without tests, remove rust-static-assertions-1.

Change-Id: I69721ba6764ae56a01123c98d68906badabc46b4
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++----------
 1 file changed, 23 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c37ca845a9..82727e5e74 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41202,23 +41202,36 @@ (define-public rust-nix-0.26
   (package
     (inherit rust-nix-0.27)
     (name "rust-nix")
-    (version "0.26.2")
+    (version "0.26.4")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "nix" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "06lfvjhsj5zlslsg2jhijrm69npprmsh7r1667qnl7c2jv8s7pdz"))))
+        (base32 "06xgl4ybb8pvjrbmc3xggbgk3kbs1j0c4c0nzdfrmpbgrkrym2sr"))
+       (modules '((guix build utils)))
+       (snippet '(substitute*
+                   "src/sys/resource.rs" ; test panics
+                   (("pub fn test_self_cpu_time()" all)
+                    (string-append "#[ignore]\n" all))))))
+    (build-system cargo-build-system)
     (arguments
-     (list #:skip-build? #t
-           #:cargo-inputs
-           `(("rust-bitflags" ,rust-bitflags-1)
-             ("rust-cfg-if" ,rust-cfg-if-1)
-             ("rust-libc" ,rust-libc-0.2)
-             ("rust-memoffset" ,rust-memoffset-0.7)
-             ("rust-pin-utils" ,rust-pin-utils-0.1)
-             ("rust-static-assertions" ,rust-static-assertions-1))))))
+     `(#:tests? #f ; some tests hang
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-memoffset" ,rust-memoffset-0.7)
+                       ("rust-pin-utils" ,rust-pin-utils-0.1))
+       #:cargo-development-inputs
+       (("rust-assert-impl" ,rust-assert-impl-0.1)
+        ("rust-caps" ,rust-caps-0.5)
+        ("rust-lazy-static" ,rust-lazy-static-1)
+        ("rust-parking-lot" ,rust-parking-lot-0.12)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-semver" ,rust-semver-1)
+        ("rust-sysctl" ,rust-sysctl-0.4)
+        ("rust-tempfile" ,rust-tempfile-3))))))
 
 (define-public rust-nix-0.25
   (package
-- 
2.41.0