Subject: [bug#69170] [PATCH rust-team 12/46] gnu: Add rust-sysctl-0.5.

From: Tomas Volf <[email-masked]>
Date: Thu, 15 Feb 2024 21:26:25 +0100

* gnu/packages/crates-io.scm (rust-sysctl-0.5): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c063861612..1be35e317e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66501,6 +66501,32 @@ (define-public rust-syscallz-0.16
        #:cargo-development-inputs
        (("rust-libc" ,rust-libc-0.2))))))
 
+(define-public rust-sysctl-0.5
+  (package
+    (name "rust-sysctl")
+    (version "0.5.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "sysctl" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1sly34bm4w2vcfqgn7f6255pxwa2wa4vkzdrz2x0drgyy32xszgc"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-enum-as-inner" ,rust-enum-as-inner-0.6)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-walkdir" ,rust-walkdir-2))))
+    (home-page "https://github.com/johalun/sysctl-rs")
+    (synopsis "Simplified interface to libc::sysctl")
+    (description "This crate provides a safe interface for reading and writing
+information to the kernel using the sysctl interface.")
+    (license license:expat)))
+
 (define-public rust-sysctl-0.4
   (package
     (name "rust-sysctl")
-- 
2.41.0