Subject: [PATCH 052/228] gnu: Add rust-pnet-sys-0.34.

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

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

Change-Id: I00cfe081f4414616c7524af5093ebd639c8cd37f
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4a602c5809..1841027950 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -48435,29 +48435,41 @@ (define-public rust-pnet-datalink-0.27
      "This crate implements cross-platform, datalink layer networking.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-pnet-sys-0.27
+(define-public rust-pnet-sys-0.34
   (package
     (name "rust-pnet-sys")
-    (version "0.27.2")
+    (version "0.34.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pnet_sys" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "05gz5xixzvs5iw7a3l0r7sic7s44x8xmv9pqvzzs6wpdwz2f92bm"))))
+        (base32 "004d28vbaxv3m55cd741mpjm34031c3p2dpp8kazcwxms7n0nz21"))))
     (build-system cargo-build-system)
     (arguments
      `(#:tests? #f  ; Tries to use sockets.
-       #:cargo-inputs
-       (("rust-libc" ,rust-libc-0.2)
-        ("rust-winapi" ,rust-winapi-0.3))))
+       #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-winapi" ,rust-winapi-0.3))))
     (home-page "https://github.com/libpnet/libpnet")
     (synopsis "Access to network related system functions")
     (description
      "This crate providess access to network related system function and calls.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pnet-sys-0.27
+  (package
+    (inherit rust-pnet-sys-0.34)
+    (name "rust-pnet-sys")
+    (version "0.27.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pnet_sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "05gz5xixzvs5iw7a3l0r7sic7s44x8xmv9pqvzzs6wpdwz2f92bm"))))))
+
 (define-public rust-pocket-resources-0.3
   (package
     (name "rust-pocket-resources")
-- 
2.41.0