Subject: [bug#67077] [PATCH 31/36] gnu: Add rust-pnet-datalink-0.27.

From: VÖRÖSKŐI András <[email-masked]>
Date: Sat, 11 Nov 2023 16:35:39 +0100

* gnu/packages/crates-io.scm (rust-pnet-datalink-0.27): New variable.

Change-Id: I917a2bb2bd0344601e8cf7ae16ad4338973dda88
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a1e0d816d7..abd84b2658 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -52140,6 +52140,33 @@ (define-public rust-pnet-base-0.27
 code used by pnet.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pnet-datalink-0.27
+  (package
+    (name "rust-pnet-datalink")
+    (version "0.27.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pnet-datalink" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1iws7c2mf88ip43ccmr5p8r6kzb6lwsg3amgc4pvy8wx9nf1q02r"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-ipnetwork" ,rust-ipnetwork-0.17)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-netmap-sys" ,rust-netmap-sys-0.1)
+        ("rust-pcap" ,rust-pcap-0.7)
+        ("rust-pnet-base" ,rust-pnet-base-0.27)
+        ("rust-pnet-sys" ,rust-pnet-sys-0.27)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-winapi" ,rust-winapi-0.3))))
+    (home-page "https://github.com/libpnet/libpnet")
+    (synopsis "Cross-platform, datalink layer networking")
+    (description "This crate implements cross-platform, datalink layer networking.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-pocket-resources-0.3
   (package
     (name "rust-pocket-resources")
-- 
2.41.0