gnu: rust-colored-1.9: Don't skip build.

* gnu/packages/crates-io.scm (rust-colored-1.9)[arguments]: Don't skip
build. Add rust-rspec-1 to cargo-development-inputs. Add custom phase to
use rust-rspec-1.
This commit is contained in:
Efraim Flashner 2020-07-09 12:04:23 +03:00
parent c0f5b34e48
commit 3cde2bdaa6
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3421,15 +3421,21 @@ (define-public rust-colored-1.9
"0nbc1czs512h1k696y7glv1kjrb2b914zpxraic6q5fgv80wizzl"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
`(#:tests? #f
#:cargo-inputs
(("rust-atty" ,rust-atty-0.2)
("rust-winapi" ,rust-winapi-0.3)
("rust-lazy-static" ,rust-lazy-static-1))
#:cargo-development-inputs
(("rust-ansi-term" ,rust-ansi-term-0.12)
;("rust-rspec" ,rust-rspec-1.0)
)))
("rust-rspec" ,rust-rspec-1))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-version-requirements
(lambda _
(substitute* "Cargo.toml"
(("1.0.0-beta.3") ,(package-version rust-rspec-1)))
#t)))))
(home-page "https://github.com/mackwic/colored")
(synopsis "Add colors in your terminal")
(description
@ -3446,8 +3452,7 @@ (define-public rust-colored-1.9.1
(uri (crate-uri "colored" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0fildacm47g86acmx44yvxx6cka8fdym5qkgfm8x8gh2hsrghc7r"))))
(build-system cargo-build-system)))
(base32 "0fildacm47g86acmx44yvxx6cka8fdym5qkgfm8x8gh2hsrghc7r"))))))
;; This package requires features which are unavailable
;; on the stable releases of Rust.