Subject: [bug#69257] [PATCH 053/228] gnu: Add rust-pnet-datalink-0.34.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:02:51 +0100

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

Change-Id: I929d97b3f4a0ac9b015c39e92993190c062a5192
---
 gnu/packages/crates-io.scm | 36 +++++++++++++++++++++++++++++-------
 1 file changed, 29 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1841027950..6a2070fc57 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -48407,8 +48407,36 @@ (define-public rust-pnet-base-0.27
        (sha256
         (base32 "1v8bcbv9jh581ill77qjzzw2ay76pl781982yclj3xky96m8hijf"))))))
 
+(define-public rust-pnet-datalink-0.34
+  (package
+    (name "rust-pnet-datalink")
+    (version "0.34.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pnet_datalink" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1zlq1z3y6flpqh0x2yqczxvzavwpr3mlazbzjv9vnzh6y2mm8n5d"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-ipnetwork" ,rust-ipnetwork-0.20)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-netmap-sys" ,rust-netmap-sys-0.1)
+                       ("rust-pcap" ,rust-pcap-1)
+                       ("rust-pnet-base" ,rust-pnet-base-0.34)
+                       ("rust-pnet-sys" ,rust-pnet-sys-0.34)
+                       ("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-pnet-datalink-0.27
   (package
+    (inherit rust-pnet-datalink-0.34)
     (name "rust-pnet-datalink")
     (version "0.27.2")
     (source
@@ -48418,7 +48446,6 @@ (define-public rust-pnet-datalink-0.27
        (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)
@@ -48428,12 +48455,7 @@ (define-public rust-pnet-datalink-0.27
         ("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))))
+        ("rust-winapi" ,rust-winapi-0.3))))))
 
 (define-public rust-pnet-sys-0.34
   (package
-- 
2.41.0