From 18581142b676f5a690a7f5525c620a72bf3848a7 Mon Sep 17 00:00:00 2001 From: Tomas Volf <~@wolfsden.cz> Date: Thu, 15 Feb 2024 21:26:25 +0100 Subject: gnu: Add rust-sysctl-0.5. * gnu/packages/crates-io.scm (rust-sysctl-0.5): New variable. (rust-sysctl-0.4): Inherit from rust-sysctl-0.5. Change-Id: I439a9d91a2eca69b46194b0f7f62f86ef54b6cf3 Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) (limited to 'gnu/packages/crates-io.scm') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e6a9306af9..1cca28115f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -66587,8 +66587,38 @@ no_std compatible by default, only relying on alloc.") #: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 + `(#:cargo-test-flags + '("--release" "--" + "--skip=ctl_value::tests_linux::ctl_value_string" + "--skip=sys::ctl_iter::tests::ctl_iter_below_compare_outputs") + #: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 + (inherit rust-sysctl-0.5) (name "rust-sysctl") (version "0.4.6") (source @@ -66598,7 +66628,6 @@ no_std compatible by default, only relying on alloc.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1a6g8cb8c7wk0rsz6ixydbmaxhs0i8d3hmywd1qi1bfh08zlhpi2")))) - (build-system cargo-build-system) (arguments `(#:cargo-test-flags `("--" "--skip=ctl_value::tests_linux::ctl_value_string" @@ -66607,12 +66636,7 @@ no_std compatible by default, only relying on alloc.") ("rust-byteorder" ,rust-byteorder-1) ("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 package provides a simplified interface to libc::sysctl.") - (license license:expat))) + ("rust-walkdir" ,rust-walkdir-2)))))) (define-public rust-sysctl-0.1 (package -- cgit v1.2.3