me
/
guix
Archived
1
0
Fork 0

gnu: Add rust-anstream-0.6.

* gnu/packages/crates-io.scm (rust-anstream-0.6): New variable.
(rust-anstream-0.3): Inherit from rust-anstream-0.6.

Change-Id: I4e0fe6cb95eeecadf510c43fec2257365699fb96
Efraim Flashner 2023-10-27 20:31:24 +03:00
parent beea3651e2
commit b2d335c5fc
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 33 additions and 8 deletions

View File

@ -3518,8 +3518,40 @@ it outputs messages to Android's logcat.")
escape codes.")
(license license:mpl2.0)))
(define-public rust-anstream-0.6
(package
(name "rust-anstream")
(version "0.6.4")
(source
(origin
(method url-fetch)
(uri (crate-uri "anstream" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0i2a9390vwhc42c5njz38n56jfwg17v64nqw9232j9gb2sz1xf9a"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-anstyle" ,rust-anstyle-1)
("rust-anstyle-parse" ,rust-anstyle-parse-0.2)
("rust-anstyle-query" ,rust-anstyle-query-1)
("rust-anstyle-wincon" ,rust-anstyle-wincon-3)
("rust-colorchoice" ,rust-colorchoice-1)
("rust-utf8parse" ,rust-utf8parse-0.2))
#:cargo-development-inputs
(("rust-criterion" ,rust-criterion-0.5)
("rust-owo-colors" ,rust-owo-colors-3)
("rust-proptest" ,rust-proptest-1)
("rust-strip-ansi-escapes" ,rust-strip-ansi-escapes-0.2))))
(home-page "https://github.com/rust-cli/anstyle")
(synopsis "Library for writing colored text to a terminal")
(description
"This package provides a simple cross platform library for writing colored
text to a terminal.")
(license (list license:expat license:asl2.0))))
(define-public rust-anstream-0.3
(package
(inherit rust-anstream-0.6)
(name "rust-anstream")
(version "0.3.2")
(source (origin
@ -3529,7 +3561,6 @@ escape codes.")
(sha256
(base32
"0qzinx9c8zfq3xqpxzmlv6nrm3ymccr4n8gffkdmj31p50v4za0c"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-anstyle" ,rust-anstyle-1)
@ -3543,13 +3574,7 @@ escape codes.")
(("rust-criterion" ,rust-criterion-0.4)
("rust-owo-colors" ,rust-owo-colors-3)
("rust-proptest" ,rust-proptest-1)
("rust-strip-ansi-escapes" ,rust-strip-ansi-escapes-0.1))))
(home-page "https://github.com/rust-cli/anstyle")
(synopsis "Library for writing colored text to a terminal")
(description
"This package provides a simple cross platform library for writing colored
text to a terminal.")
(license (list license:expat license:asl2.0))))
("rust-strip-ansi-escapes" ,rust-strip-ansi-escapes-0.1))))))
(define-public rust-anstyle-1
(package