From a897895b229ee80ccd09e9f5c03abe68e711214c Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Wed, 8 Jan 2025 14:18:56 -0600 Subject: [PATCH] gnu: Add rust-xenstore-sys-0.2 * gnu/packages/crates-io.scm (rust-xenstore-sys-0.2): New variable. Change-Id: I91b20f282325f6a1c3548eff981eb5158d982cc1 Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 27ed370d61..0d44b55d2e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -138,6 +138,7 @@ (define-module (gnu packages crates-io) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (gnu packages gtk) + #:use-module (gnu packages virtualization) #:use-module (gnu packages webkit) #:use-module (srfi srfi-1)) @@ -92931,6 +92932,28 @@ (define-public rust-xdg-home-1 (description "The user's home directory as per the XDG Specification.") (license license:expat))) +(define-public rust-xenstore-sys-0.2 + (package + (name "rust-xenstore-sys") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "xenstore-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1xrjy0d3cg9qrznfsfjrgha8si1dvdyfx3g7c76hbb7lnim5vmj7")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-bindgen" ,rust-bindgen-0.71) + ("rust-pkg-config" ,rust-pkg-config-0.3)))) + (native-inputs (list pkg-config)) + (inputs (list clang xen)) + (home-page "https://github.com/Wenzel/xenstore-sys") + (synopsis "Rust FFI bindings for libxenstore") + (description "This package provides Rust FFI bindings for libxenstore.") + (license license:gpl3))) + (define-public rust-xi-unicode-0.3 (package (name "rust-xi-unicode")