guix-commits
[Top][All Lists]
Advanced

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

56/137: gnu: Add rust-local-ip-address-0.4.


From: guix-commits
Subject: 56/137: gnu: Add rust-local-ip-address-0.4.
Date: Thu, 21 Dec 2023 04:26:21 -0500 (EST)

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

commit 584ed0d9171cdad969d9d358962929444d3844cc
Author: Jaeme Sifat <jaeme@runbox.com>
AuthorDate: Mon Oct 30 22:52:38 2023 -0400

    gnu: Add rust-local-ip-address-0.4.
    
    * gnu/packages/crates-io.scm (rust-local-ip-address-0.4): New variable.
    
    Change-Id: I8e6d544858d6e3adc72eebdbb38730c1e1acd6be
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 15f883f8b3..6fa4b9d0af 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42784,6 +42784,32 @@ can also be used outside of a proc-macro context.")
 by inspecting the system for user preference.")
     (license license:expat)))
 
+(define-public rust-local-ip-address-0.4
+  (package
+    (name "rust-local-ip-address")
+    (version "0.4.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "local-ip-address" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1xc88i6v43rx5f5im0zadd8nl3k7wvf2lv351q20d05h5w4pzawy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f  ; Integration test with local IP address.
+       #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-neli" ,rust-neli-0.5)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-windows-sys" ,rust-windows-sys-0.42))))
+    (home-page "https://github.com/EstebanBorai/local-ip-address";)
+    (synopsis
+     "Retrieve system's local IP address and network interfaces/adapters")
+    (description
+     "This package provides retrieving the system's local IP address and
+network interfaces/adapters.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-lock-api-0.4
   (package
     (name "rust-lock-api")



reply via email to

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