me
/
guix
Archived
1
0
Fork 0

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>
master
VÖRÖSKŐI András 2023-11-11 16:35:37 +01:00 committed by Efraim Flashner
parent e35730cae5
commit e9df56e112
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 28 additions and 0 deletions

View File

@ -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")