From c78a24ac94fe411852fabe1914c09ca72f3befbc Mon Sep 17 00:00:00 2001 From: Jaeme Sifat Date: Mon, 30 Oct 2023 22:52:38 -0400 Subject: [PATCH] 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 --- 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 0362e8c974..1469a3f2fb 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -42842,6 +42842,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")