Subject: [bug#69170] [PATCH rust-team 22/46] gnu: Add rust-netlink-packet-core-0.7.

From: Tomas Volf <[email-masked]>
Date: Thu, 15 Feb 2024 21:26:35 +0100

* gnu/packages/crates-io.scm (rust-netlink-packet-core-0.7): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 10a108761a..f1b0ace050 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39950,6 +39950,30 @@ (define-public rust-netlink-packet-utils-0.5
     (description "Macros and helpers for parsing netlink messages.")
     (license license:expat)))
 
+(define-public rust-netlink-packet-core-0.7
+  (package
+    (name "rust-netlink-packet-core")
+    (version "0.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "netlink-packet-core" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "197dh9c5570135kv5q770n2ih5prhsql58cd71xxcya4f2plywkj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-netlink-packet-utils" ,rust-netlink-packet-utils-0.5))))
+    (home-page "https://github.com/rust-netlink/netlink-packet-core")
+    (synopsis "Netlink packet types")
+    (description "The @code{netlink-packet-core} is the glue for all the other
+@code{netlink-packet-*} crates.  It provides a @code{NetlinkMessage<T>} type
+that represent any netlink message for any sub-protocol.")
+    (license license:expat)))
+
 (define-public rust-netmap-sys-0.1
   (package
     (name "rust-netmap-sys")
-- 
2.41.0