summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-08-02 20:11:40 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-08-14 19:38:20 +0300
commit9622bff8e964402d696cb833d6f954baa6f992e7 (patch)
treee57c6b6430f7ea40ac2220834eaf3c0231ab8742 /gnu/packages
parentc0042d1c6c6b6f4bb4d24443a86db28fc0cd821a (diff)
downloadguix-9622bff8e964402d696cb833d6f954baa6f992e7.tar.gz
gnu: Add rust-vsock-0.3.
* gnu/packages/crates-io.scm (rust-vsock-0.3): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 278716978f..cedd8cb6cf 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -74715,6 +74715,31 @@ updated when the crate version changes.")
 hardware registers.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-vsock-0.3
+  (package
+    (name "rust-vsock")
+    (version "0.3.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "vsock" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0mwwcjk2yd3fi5ryv5xhd7569bmcj0dlsmi4bh4jh6qypzq1v3jc"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f      ; Tests not runnable from the build environment.
+       #:cargo-inputs
+       (("rust-libc" ,rust-libc-0.2)
+        ("rust-nix" ,rust-nix-0.24))
+       #:cargo-development-inputs
+       (("rust-rand" ,rust-rand-0.8)
+        ("rust-sha2" ,rust-sha2-0.10))))
+    (home-page "https://github.com/rust-vsock/vsock-rs")
+    (synopsis "Virtio socket support for Rust")
+    (description "This package provdies virtio socket support for Rust.")
+    (license license:asl2.0)))
+
 (define-public rust-vswhom-0.1
   (package
     (name "rust-vswhom")