>From 92395766d44b1a7d97b07cf330d2b14703c5e935 Mon Sep 17 00:00:00 2001 From: John Soo Date: Wed, 17 Jun 2020 18:23:06 -0700 Subject: [PATCH 07/14] gnu: Add rust-username-0.2. * gnu/packages/crates-io.scm (rust-username-0.2): New variable. --- gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9d439797ea..765d040229 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -45594,6 +45594,32 @@ encoding.") See winapi for types and constants.") (license license:expat))) +(define-public rust-username-0.2 + (package + (name "rust-username") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "username" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "028s7gpsz17z6chy818bpkxldixfxhlvicvyvhdbrxr7cpgjbr4j")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-advapi32-sys" ,rust-advapi32-sys-0.2) + ("rust-winapi" ,rust-winapi-0.3)))) + (home-page "https://pijul.org/darcs/user") + (synopsis + "Portably retrieve the username of the user running the current thread") + (description + "Portably retrieve the user name (and possibly other information in +future versions) of the user running the current thread.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-users-0.10 (package (name "rust-users") -- 2.30.1