[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/40: gnu: Add rust-gethostname-0.3.
From: |
guix-commits |
Subject: |
25/40: gnu: Add rust-gethostname-0.3. |
Date: |
Sun, 22 Oct 2023 09:40:34 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit c2285b733a2e00a2041853556fea739fcf8660c6
Author: Aleksandr Vityazev <avityazew@gmail.com>
AuthorDate: Sat Oct 7 03:02:44 2023 +0300
gnu: Add rust-gethostname-0.3.
* gnu/packages/crates-io.scm (rust-gethostname-0.3): New variable.
(rust-gethostname-0.2): Inherit from rust-gethostname-0.3.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/crates-io.scm | 35 ++++++++++++++++++++++++++++-------
1 file changed, 28 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 326d090137..20159f41c5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -28184,8 +28184,35 @@ Rust.")
interfaces on the system.")
(license (list license:expat license:bsd-3))))
+(define-public rust-gethostname-0.3
+ (package
+ (name "rust-gethostname")
+ (version "0.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "gethostname" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0xy1wbx5k2bzi4cbaqj9wqgqsbn4f8pm6nsm1d86mibk66xd8rdv"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-test-flags
+ '("--release" "--"
+ ;; Not all files included
+ "--skip=gethostname_matches_system_hostname")
+ #:cargo-inputs
+ (("rust-libc" ,rust-libc-0.2)
+ ("rust-winapi" ,rust-winapi-0.3))))
+ (home-page "https://github.com/swsnr/gethostname.rs")
+ (synopsis "Gethostname for all platforms")
+ (description "This library provides @code{gethostname()} for all
+platforms.")
+ (license license:asl2.0)))
+
(define-public rust-gethostname-0.2
(package
+ (inherit rust-gethostname-0.3)
(name "rust-gethostname")
(version "0.2.1")
(source
@@ -28195,19 +28222,13 @@ interfaces on the system.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0a609j9dhk816il2f2a01avvi5sqzxh0p38nxwrja7dcpybf54p6"))))
- (build-system cargo-build-system)
(arguments
`(#:tests? #f ; test panics
#:cargo-inputs
(("rust-libc" ,rust-libc-0.2)
("rust-winapi" ,rust-winapi-0.3))
#:cargo-development-inputs
- (("rust-pretty-assertions" ,rust-pretty-assertions-0.6))))
- (home-page "https://github.com/lunaryorn/gethostname.rs")
- (synopsis "Gethostname for all platforms")
- (description "This library provides @code{gethostname()} for all
-platforms.")
- (license license:asl2.0)))
+ (("rust-pretty-assertions" ,rust-pretty-assertions-0.6))))))
(define-public rust-getopts-0.2
(package
- branch master updated (8ca7ccbf0d -> 6d4f4e916a), guix-commits, 2023/10/22
- 03/40: gnu: Add rust-fork-0.1., guix-commits, 2023/10/22
- 05/40: gnu: Add rust-hyprland-0.3., guix-commits, 2023/10/22
- 09/40: gnu: Add rust-serde-with-macros-3., guix-commits, 2023/10/22
- 06/40: gnu: Add rust-darling-core-0.20., guix-commits, 2023/10/22
- 14/40: gnu: Add rust-rmp-serde-1., guix-commits, 2023/10/22
- 22/40: gnu: Add rust-wayland-protocols-0.30., guix-commits, 2023/10/22
- 23/40: gnu: Add rust-wayland-protocols-wlr-0.1., guix-commits, 2023/10/22
- 26/40: gnu: Add rust-x11rb-protocol-0.12., guix-commits, 2023/10/22
- 25/40: gnu: Add rust-gethostname-0.3.,
guix-commits <=
- 31/40: gnu: Add rust-zvariant-derive-2., guix-commits, 2023/10/22
- 29/40: gnu: Add rust-enumflags2-0.6., guix-commits, 2023/10/22
- 17/40: gnu: Add rust-wayland-backend-0.1., guix-commits, 2023/10/22
- 20/40: gnu: Add rust-wayland-client-0.30., guix-commits, 2023/10/22
- 27/40: gnu: Add rust-x11rb-0.12., guix-commits, 2023/10/22
- 37/40: gnu: Add xremap-wlroots., guix-commits, 2023/10/22
- 04/40: gnu: Add rust-hyprland-macros-0.3., guix-commits, 2023/10/22
- 01/40: gnu: Add rust-derive-where-1., guix-commits, 2023/10/22
- 02/40: gnu: Add rust-evdev-0.12., guix-commits, 2023/10/22
- 10/40: gnu: rust-expect-test-1: Update to 1.4.1., guix-commits, 2023/10/22