guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10/22: gnu: Add rust-hostname.


From: guix-commits
Subject: 10/22: gnu: Add rust-hostname.
Date: Thu, 29 Aug 2019 08:05:57 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit f1e81de926254eea0778d0b8ff12b67d0b4be6e2
Author: Efraim Flashner <address@hidden>
Date:   Thu Aug 29 12:48:14 2019 +0300

    gnu: Add rust-hostname.
    
    * gnu/packages/crates-io.scm (rust-hostname): New variable.
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 60cc630..ea2b5ec 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -519,6 +519,29 @@ hexadecimal representation.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-hostname
+  (package
+    (name "rust-hostname")
+    (version "0.1.5")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "hostname" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "0kprf862qaa7lwdms6aw7f3275h0j2rwhs9nz5784pm8hdmb9ki1"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-libc" ,rust-libc)
+        ("rust-winutil" ,rust-winutil))))
+    (home-page "https://github.com/fengcen/hostname";)
+    (synopsis "Get hostname for Rust")
+    (description
+     "Get hostname for Rust.")
+    (license license:expat)))
+
 (define-public rust-iovec
   (package
     (name "rust-iovec")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]