summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-08-02 20:12:05 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-08-14 19:38:20 +0300
commit052d6a7a9dc227ab2b2ba5769b6f78f0dc2a139f (patch)
tree7b4e207d55ae85c2966e007b86c8ed73578c3259
parent9622bff8e964402d696cb833d6f954baa6f992e7 (diff)
gnu: Add rust-whoami-1.
* gnu/packages/crates-io.scm (rust-whoami-1): New variable. (rust-whoami-0.8): Inherit from rust-whoami-1.
-rw-r--r--gnu/packages/crates-io.scm40
1 files changed, 28 insertions, 12 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cedd8cb6cf..99c2b4b8b9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -76124,25 +76124,41 @@ executable.")
#:cargo-development-inputs
(("rust-tempdir" ,rust-tempdir-0.3))))))
-(define-public rust-whoami-0.8
+(define-public rust-whoami-1
(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"))))
+ (version "1.4.1")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "whoami" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0l6ca9pl92wmngsn1dh9ih716v216nmn2zvcn94k04x9p1b3gz12"))))
(build-system cargo-build-system)
- (arguments `(#:skip-build? #t))
- (home-page "https://github.com/libcala/whoami")
+ (arguments
+ `(#:cargo-inputs
+ (("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
+ ("rust-web-sys" ,rust-web-sys-0.3))))
+ (home-page "https://github.com/ardaku/whoami/blob/stable/CHANGELOG.md")
(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))))
+ (license (list license:asl2.0 license:boost1.0 license:expat))))
+
+(define-public rust-whoami-0.8
+ (package
+ (inherit rust-whoami-1)
+ (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"))))
+ (arguments `(#:skip-build? #t))))
(define-public rust-wide-0.7
(package