summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSteve George <steve@futurile.net>2023-10-30 21:06:09 +0000
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:59:29 +0200
commit9c4d4851da306f2ae646e4bf9ce91a03bcf776c8 (patch)
tree6835ccaf0f22cf22e836d1983104971a5758132c /gnu/packages
parenta03915c6cc0e343a5f069d759ceab31bc861c49b (diff)
gnu: rust-gethostname-0.4.
* gnu/packages/crates-io.scm (rust-gethostname-0.4): New variable. Change-Id: I113a2ed209cf6285df02df60178310f0cda80741
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm32
1 files changed, 25 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d037851dbd..52b39b10ec 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29342,8 +29342,32 @@ Rust.")
interfaces on the system.")
(license (list license:expat license:bsd-3))))
+(define-public rust-gethostname-0.4
+ (package
+ (name "rust-gethostname")
+ (version "0.4.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "gethostname" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "063qqhznyckwx9n4z4xrmdv10s0fi6kbr17r6bi1yjifki2y0xh1"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-test-flags (list "--release" "--"
+ "--skip=gethostname_matches_system_hostname")
+ #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+ ("rust-windows-targets" ,rust-windows-targets-0.48))))
+ (home-page "https://github.com/swsnr/gethostname.rs")
+ (synopsis "Rust implementation of gethostname for all platforms")
+ (description "A Rust library that provides @code{gethostname()} for all
+platforms.")
+ (license license:asl2.0)))
+
(define-public rust-gethostname-0.3
(package
+ (inherit rust-gethostname-0.4)
(name "rust-gethostname")
(version "0.3.0")
(source
@@ -29353,7 +29377,6 @@ interfaces on the system.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0xy1wbx5k2bzi4cbaqj9wqgqsbn4f8pm6nsm1d86mibk66xd8rdv"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-test-flags
'("--release" "--"
@@ -29361,12 +29384,7 @@ interfaces on the system.")
"--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)))
+ ("rust-winapi" ,rust-winapi-0.3))))))
(define-public rust-gethostname-0.2
(package