diff options
author | Giacomo Leidi <[email protected]> | 2024-11-06 21:42:57 +0100 |
---|---|---|
committer | Efraim Flashner <[email protected]> | 2024-11-28 11:05:04 +0200 |
commit | 881c8dc3d0dc842911a4690feddbc61ce4646416 (patch) | |
tree | dd65d79ea8db04c9a3466df33b8e922b81d840e4 /gnu/packages/crates-io.scm | |
parent | e525e0dc26f1f8d6fe5fdc91877d5c98554d6bdd (diff) |
gnu: Add rust-vsock-0.5.
* gnu/packages/crates-io.scm (rust-vsock-0.5): New variable.
(rust-vsock-0.3): Inherit from rust-vsock-0.5.
Change-Id: I34faed16396ef65e3b90a1d08519154feeb61b07
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r-- | gnu/packages/crates-io.scm | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 19699d20b1..007650a61c 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -91300,8 +91300,33 @@ updated when the crate version changes.") "The uninhabited void type for use in statically impossible cases.") (license license:expat))) +(define-public rust-vsock-0.5 + (package + (name "rust-vsock") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "vsock" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1276xvg0jadqvxw26m2018fbsi8lvgx3i5x0hvy4gwbjwq04v2sf")))) + (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.29)) + #: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-vsock-0.3 (package + (inherit rust-vsock-0.5) (name "rust-vsock") (version "0.3.0") (source (origin @@ -91311,7 +91336,6 @@ updated when the crate version changes.") (sha256 (base32 "0mwwcjk2yd3fi5ryv5xhd7569bmcj0dlsmi4bh4jh6qypzq1v3jc")))) - (build-system cargo-build-system) (arguments `(#:tests? #f ; Tests not runnable from the build environment. #:cargo-inputs @@ -91319,11 +91343,7 @@ updated when the crate version changes.") ("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))) + ("rust-sha2" ,rust-sha2-0.10)))))) (define-public rust-vsock-0.2 (package |