From 85f76a37fac15f9d06243646abe1296e6ef32fd3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 2 Aug 2023 19:50:17 +0300 Subject: gnu: Add rust-inotify-0.10. * gnu/packages/crates-io.scm (rust-inotify-0.10): New variable. (rust-inotify-0.9): Inherit from rust-inotify-0.10. --- gnu/packages/crates-io.scm | 51 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 38 insertions(+), 13 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9cf6352d96..f5c0970b25 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -31563,22 +31563,20 @@ (define-public rust-inflector-0.11 as both traits and pure functions acting on String types.") (license license:bsd-2))) -(define-public rust-inotify-0.9 +(define-public rust-inotify-0.10 (package (name "rust-inotify") - (version "0.9.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "inotify" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1cs3xlkq3fnfca3mimvifazp01ayscinm07v38ifw0xin5f4fcdh")))) + (version "0.10.2") + (source (origin + (method url-fetch) + (uri (crate-uri "inotify" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1k2m6a95827yspax1icmwiz4szr7c01w3dnn2b2bil4hfvcnilgx")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t - #:cargo-inputs + `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1) ("rust-futures-core" ,rust-futures-core-0.3) ("rust-inotify-sys" ,rust-inotify-sys-0.1) @@ -31586,14 +31584,41 @@ (define-public rust-inotify-0.9 ("rust-tokio" ,rust-tokio-1)) #:cargo-development-inputs (("rust-futures-util" ,rust-futures-util-0.3) + ("rust-maplit" ,rust-maplit-1) + ("rust-rand" ,rust-rand-0.8) ("rust-tempfile" ,rust-tempfile-3) ("rust-tokio" ,rust-tokio-1)))) - (home-page "https://github.com/inotify-rs/inotify") + (home-page "https://github.com/hannobraun/inotify") (synopsis "Idiomatic wrapper for inotify") (description "This package provides an idiomatic wrapper for inotify written in Rust.") (license license:isc))) +(define-public rust-inotify-0.9 + (package + (inherit rust-inotify-0.10) + (name "rust-inotify") + (version "0.9.3") + (source (origin + (method url-fetch) + (uri (crate-uri "inotify" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1cs3xlkq3fnfca3mimvifazp01ayscinm07v38ifw0xin5f4fcdh")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-futures-core" ,rust-futures-core-0.3) + ("rust-inotify-sys" ,rust-inotify-sys-0.1) + ("rust-libc" ,rust-libc-0.2) + ("rust-tokio" ,rust-tokio-1)) + #:cargo-development-inputs + (("rust-futures-util" ,rust-futures-util-0.3) + ("rust-tempfile" ,rust-tempfile-3) + ("rust-tokio" ,rust-tokio-1)))))) + (define-public rust-inotify-0.8 (package (inherit rust-inotify-0.9) -- cgit v1.2.3