diff mbox series

[bug#46192,09/21] gnu: Add rust-whoami-0.8.

Message ID 20210204113812.rr4mswwcomsgjvlm@minitower
State Accepted
Headers show
Series None | expand

Commit Message

aecepoglu Feb. 4, 2021, 11:38 a.m. UTC
* gnu/packages/crates-io.scm (rust-whoami-0.8): New variable.
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 23c36d215c..a5da6a84e8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41929,6 +41929,29 @@  Locate installed executable in cross platforms.")
        #:cargo-development-inputs
        (("rust-tempdir" ,rust-tempdir-0.3))))))
 
+(define-public rust-whoami-0.8
+  (package
+    (name "rust-whoami")
+    (version "0.8.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "whoami" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0z18m6w2q8a6rivd61sh3f00pdhyvxiwycs2j5088gvgdxb5bfqq"))))
+    (build-system cargo-build-system)
+    (home-page
+      "https://github.com/libcala/whoami")
+    (synopsis
+      "Retrieve the current user and environment")
+    (description
+      "This package provides simple functions to retrieve the
+ current user and environment.")
+    (license (list license:expat license:boost1.0))))
+
 (define-public rust-wide-0.4
   (package
     (name "rust-wide")