From 0de898009b37ffc3193b62cb2c9b0ef9c52d94f6 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Fri, 27 Oct 2023 20:31:58 +0300 Subject: [PATCH] gnu: Add rust-anstyle-wincon-3. * gnu/packages/crates-io.scm (rust-anstyle-wincon-3): New variable. (rust-anstyle-wincon-1): Inherit from rust-anstyle-wincon-3. Change-Id: Ib46f7066bfd94d845ff453bb76731cc6001269a9 --- gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 93961971f2..345ff12858 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -3659,8 +3659,30 @@ (define-public rust-anstyle-query-1 (description "Look up colored console capabilities") (license (list license:expat license:asl2.0)))) +(define-public rust-anstyle-wincon-3 + (package + (name "rust-anstyle-wincon") + (version "3.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "anstyle-wincon" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0a066gr4p7bha8qwnxyrpbrqzjdvk8l7pdg7isljimpls889ssgh")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-anstyle" ,rust-anstyle-1) + ("rust-windows-sys" ,rust-windows-sys-0.48)) + #:cargo-development-inputs (("rust-lexopt" ,rust-lexopt-0.3)))) + (home-page "https://github.com/rust-cli/anstyle") + (synopsis "Styling legacy Windows terminals") + (description "Styling legacy Windows terminals.") + (license (list license:expat license:asl2.0)))) + (define-public rust-anstyle-wincon-1 (package + (inherit rust-anstyle-wincon-3) (name "rust-anstyle-wincon") (version "1.0.1") (source (origin @@ -3670,17 +3692,12 @@ (define-public rust-anstyle-wincon-1 (sha256 (base32 "12714vwjf4c1wm3qf49m5vmd93qvq2nav6zpjc0bxbh3ayjby2hq")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-anstyle" ,rust-anstyle-1) ("rust-windows-sys" ,rust-windows-sys-0.48)) #:cargo-development-inputs - (("rust-lexopt" ,rust-lexopt-0.3)))) - (home-page "https://github.com/rust-cli/anstyle") - (synopsis "Styling legacy Windows terminals") - (description "Styling legacy Windows terminals") - (license (list license:expat license:asl2.0)))) + (("rust-lexopt" ,rust-lexopt-0.3)))))) (define-public rust-antidote-1 (package