From 3d36f34939badccab0dd3e8de037878ad850773a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 22 Feb 2023 11:04:42 +0200 Subject: gnu: Add rust-ipconfig-3. * gnu/packages/crates-io.scm (rust-ipconfig-3): New variable. (rust-ipconfig-2): Inherit from rust-ipconfig-3. --- gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index cbd6492903..301f3a49a2 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -29074,8 +29074,34 @@ library.") (license (list license:asl2.0 license:expat)))) +(define-public rust-ipconfig-0.3 + (package + (name "rust-ipconfig") + (version "0.3.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "ipconfig" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1gn5j5sp58mz0630dhs1b8by7j0jqagldbd5iyln690gp7qjlc5x")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-socket2" ,rust-socket2-0.4) + ("rust-widestring" ,rust-widestring-0.5) + ("rust-winapi" ,rust-winapi-0.3) + ("rust-winreg" ,rust-winreg-0.10)))) + (home-page "https://github.com/liranringel/ipconfig") + (synopsis "Get network adapters and configuration information for Windows") + (description "This package lets you get network adapters information and +network configuration for Windows.") + (license (list license:expat license:asl2.0)))) + (define-public rust-ipconfig-0.2 (package + (inherit rust-ipconfig-0.3) (name "rust-ipconfig") (version "0.2.2") (source @@ -29086,18 +29112,12 @@ library.") (sha256 (base32 "1mzsagc6bk3i3fpggqlq8am5rxn4hgs297rsaya90w79xj5g3qpp")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-socket2" ,rust-socket2-0.3) ("rust-widestring" ,rust-widestring-0.4) ("rust-winapi" ,rust-winapi-0.3) - ("rust-winreg" ,rust-winreg-0.6)))) - (home-page "https://github.com/liranringel/ipconfig") - (synopsis "Get network adapters and configuration information for Windows") - (description "This package lets you get network adapters information and -network configuration for Windows.") - (license (list license:expat license:asl2.0)))) + ("rust-winreg" ,rust-winreg-0.6)))))) (define-public rust-is-macro-0.1 (package -- cgit 1.4.1