guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

289/470: gnu: Add rust-if-addrs-0.6.


From: guix-commits
Subject: 289/470: gnu: Add rust-if-addrs-0.6.
Date: Sun, 30 Apr 2023 14:04:33 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 4439e416bbed92e0783b99d900a536d04507b737
Author: Steve George <steve@futurile.net>
AuthorDate: Thu Feb 23 08:42:39 2023 +0000

    gnu: Add rust-if-addrs-0.6.
    
    * gnu/packages/crates-io.scm (rust-if-addrs-0.6): New variable.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 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 5c3a9664b7..295c471163 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -28242,6 +28242,29 @@ with hyper.")
 floating-point numbers.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-if-addrs-0.6
+  (package
+    (name "rust-if-addrs")
+    (version "0.6.7")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "if-addrs" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32 
"1pkkkwm9znn07xq9s6glf8lxzn2rdxvy8kwkw6czrw64ywhy8wr2"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-if-addrs-sys" ,rust-if-addrs-sys-0.3)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-winapi" ,rust-winapi-0.3))))
+    (native-inputs (list iproute))
+    (home-page "https://github.com/messense/if-addrs";)
+    (synopsis "Return interface IP addresses on POSIX and Windows systems")
+    (description "Returns the IP addresses for all network interfaces,
+on both POSIX and Microsoft Windows hosts.")
+    (license (list license:expat license:bsd-3))))
+
 (define-public rust-if-addrs-sys-0.3
   (package
     (name "rust-if-addrs-sys")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]