summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorphodina <phodina@protonmail.com>2021-09-03 22:36:02 +0000
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-09-17 12:24:28 +0200
commit15f60fec5d020a3be2d20d15ed486b2cdd92d5e3 (patch)
treed2d24b42bce5ecdefdff9426f59fe1c956a3bd1e /gnu/packages
parentb5e45d1a14fd00109fa95f5a0b9488dc40299f36 (diff)
downloadguix-15f60fec5d020a3be2d20d15ed486b2cdd92d5e3.tar.gz
gnu: Add rust-gethostname-0.2.
* gnu/packages/crates-io.scm (rust-gethostname-0.2): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6f6a54efcf..f17084dc41 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -18742,6 +18742,31 @@ interfaces on the system.")
 @code{_getch} on Windows, and @code{termios} on Unix.")
     (license license:asl2.0)))
 
+(define-public rust-gethostname-0.2
+  (package
+    (name "rust-gethostname")
+    (version "0.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gethostname" version))
+       (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)))
+
 (define-public rust-getopts-0.2
   (package
     (name "rust-getopts")