Subject: [bug#69890] [PATCH 41/43] gnu: Add rust-bsd-kvm-sys-0.2.

From: normalmente <[email-masked]>
Date: Tue, 19 Mar 2024 03:51:12 +0000

* gnu/packages/crates-io.scm (rust-bsd-kvm-sys-0.2): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fc9e999e1a..a449d1b717 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8141,6 +8141,28 @@ (define-public rust-bs58-0.2
 alphabet.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-bsd-kvm-sys-0.2
+  (package
+    (name "rust-bsd-kvm-sys")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "bsd-kvm-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0cn90d0kkfcs36v3sq3lpckyy0pdpdq0m7ihjlancripdn98yh35"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t ; Missing kvm.h.
+       #:cargo-inputs (("rust-bindgen" ,rust-bindgen-0.65))))
+    (inputs (list clang))
+    (home-page "https://github.com/dalance/bsd-kvm-sys")
+    (synopsis "BSD Kernel Data Access Library (libkvm) binding")
+    (description
+     "This package provies BSD Kernel Data Access Library (libkvm) bindings.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-bson-2
   (package
     (name "rust-bson")
-- 
2.41.0