aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilkey Mouse <milkeymouse@meme.institute>2021-08-31 20:54:18 -0700
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-09-07 22:01:15 +0200
commit1e5ebd876c010f4e67669e01540083a2674d39f6 (patch)
tree460435f3de014a8b253bab5f7c91370d99cda08a
parent759530abf4ff5bc6691230ac9245e45a365e7c6b (diff)
gnu: Add rust-pcap-sys-0.1.
* gnu/packages/crates-io.scm (rust-pcap-sys-0.1): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/crates-io.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9b1b019abc..f8621a1817 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42,6 +42,7 @@
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages)
+ #:use-module (gnu packages admin)
#:use-module (gnu packages cmake)
#:use-module (gnu packages compression)
#:use-module (gnu packages crates-graphics)
@@ -32136,6 +32137,32 @@ in pure Rust.")
("rust-sha-1" ,rust-sha-1-0.8)
("rust-sha2" ,rust-sha2-0.8))))))
+(define-public rust-pcap-sys-0.1
+ (package
+ (name "rust-pcap-sys")
+ (version "0.1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "pcap-sys" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "18w9c8i5zjnazay86219w4789482ya617z35cw433h12wbgjaiqi"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-libc" ,rust-libc-0.2)
+ ("rust-pkg-config" ,rust-pkg-config-0.3)
+ ("rust-winapi" ,rust-winapi-0.3))))
+ (inputs `(("libpcap" ,libpcap)))
+ (home-page "https://github.com/jmmk/rustcap")
+ (synopsis "Low-level bindings to libpcap")
+ (description "This package provides low-level Rust bindings to the libpcap
+library.")
+ (license license:expat)))
+
(define-public rust-pcre2-0.2
(package
(name "rust-pcre2")