diff options
author | VÖRÖSKŐI András <voroskoi@gmail.com> | 2023-11-11 16:35:37 +0100 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:56:29 +0200 |
commit | e9df56e1129dc3a8ba3ba89b6236ae5208a6bb31 (patch) | |
tree | e98dc52fea9c5332cc5f6da90d5df48fcafeb440 | |
parent | e35730cae50599f095972040c91a5b8a26a671a9 (diff) |
gnu: Add rust-pcap-0.7.
* gnu/packages/crates-io.scm (rust-pcap-0.7): New variable.
Change-Id: I7f6f1056208ebefaef537a9eeefff6c80fbc906e
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r-- | gnu/packages/crates-io.scm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 77a0cb26da..5c24b7a0e7 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -54367,6 +54367,34 @@ in pure Rust.") ("rust-sha-1" ,rust-sha-1-0.9) ("rust-sha2" ,rust-sha2-0.9)))))) +(define-public rust-pcap-0.7 + (package + (name "rust-pcap") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "pcap" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "14blflnbj87z3ajlj1hszsl6k7rwa338y4aw2yjm2j0xdpjvj4pr")))) + (native-inputs (list libpcap)) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; can't find crate for `futures` + #:cargo-inputs + (("rust-clippy" ,rust-clippy-0.0) + ("rust-futures" ,rust-futures-0.1) + ("rust-libc" ,rust-libc-0.2) + ("rust-mio" ,rust-mio-0.6) + ("rust-tokio-core" ,rust-tokio-core-0.1)) + #:cargo-development-inputs + (("rust-tempdir" ,rust-tempdir-0.3)))) + (home-page "https://github.com/rust-pcap/pcap") + (synopsis "Packet capture API around pcap/wpcap") + (description "This package provides a packet capture API around pcap/wpcap.") + (license (list license:expat license:asl2.0)))) + (define-public rust-pcap-sys-0.1 (package (name "rust-pcap-sys") |