From 28f1b5a981781f9746f065fc5f9cc454b8698f7f Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Wed, 8 Jan 2025 14:18:59 -0600 Subject: [PATCH] gnu: Add rust-xenstore-rs-0.6 * gnu/packages/crates-io.scm (rust-xenstore-rs-0.6): New variable. Change-Id: I11cc6f5f014201c89d7e306b73ca8aa928f7a2cb Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 0d44b55d2e..a59f6bdb72 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -92932,6 +92932,33 @@ (define-public rust-xdg-home-1 (description "The user's home directory as per the XDG Specification.") (license license:expat))) +(define-public rust-xenstore-rs-0.6 + (package + (name "rust-xenstore-rs") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "xenstore-rs" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1i8wdif8q2cxbrmcp2jxcqg95a4yfsp1m3j4yldcgad3ksl5l4qs")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-futures" ,rust-futures-0.3) + ("rust-libc" ,rust-libc-0.2) + ("rust-libloading" ,rust-libloading-0.8) + ("rust-log" ,rust-log-0.4) + ("rust-tokio" ,rust-tokio-1) + ("rust-xenstore-sys" ,rust-xenstore-sys-0.2)) + #:cargo-development-inputs (("rust-clap" ,rust-clap-4)))) + (native-inputs (list pkg-config)) + (inputs (list clang xen)) + (home-page "https://github.com/Wenzel/xenstore") + (synopsis "Rust FFI bindings for libxenstore") + (description "This package provides Rust FFI bindings for libxenstore.") + (license license:gpl3))) + (define-public rust-xenstore-sys-0.2 (package (name "rust-xenstore-sys")