Subject: [PATCH 3/6] gnu: Add rust-if-addrs-sys.

From: Steve George <[email-masked]>
Date: Thu, 23 Feb 2023 08:42:38 +0000

* gnu/packages/crates-io.scm (rust-if-addrs-sys): New variable.
---

 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index db18d62870..c79d2d15d5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -27015,6 +27015,29 @@ (define-public rust-ieee754-0.2
 floating-point numbers.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-if-addrs-sys-0.3
+    (package
+      (name "rust-if-addrs-sys")
+      (version "0.3.2")
+      (source (origin
+                (method url-fetch)
+                (uri (crate-uri "if-addrs-sys" version))
+                (file-name (string-append name "-" version ".tar.gz"))
+                (sha256
+                  (base32 "1skrzs79rafv185064p44r0k1va9ig4bfnpbwlvyhxh4g3fvjx6y"))))
+      (build-system cargo-build-system)
+      (arguments
+        `(#:skip-build? #f
+          #:cargo-inputs
+          (("rust-libc" ,rust-libc-0.2))
+          #:cargo-development-inputs
+          (("rust-cc", rust-cc-1))))
+      (home-page "https://github.com/messense/if-addrs")
+      (synopsis "Retrieve the IP addresses for all network interfaces")
+      (description "Retrieve the IP addresses for all network interfaces.
+Works on POSIX and Windows hosts.")
+      (license (list license:expat license:bsd-3))))
+
 (define-public rust-if-chain-1
   (package
     (name "rust-if-chain")
-- 
2.39.1