mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add cargo-readme@3.3.1.
* gnu/packages/rust-apps.scm (cargo-readme): New variable. Change-Id: If52d5265d9cbe16656d1fcd0965de3c7f78f7184
This commit is contained in:
parent
fe0ca6461a
commit
0a840631dd
1 changed files with 40 additions and 0 deletions
|
@ -539,6 +539,46 @@ the terminal.")
|
||||||
(description "@code{cargo-machete} finds unused dependencies in Cargo.toml.")
|
(description "@code{cargo-machete} finds unused dependencies in Cargo.toml.")
|
||||||
(license (list license:expat license:asl2.0))))
|
(license (list license:expat license:asl2.0))))
|
||||||
|
|
||||||
|
(define-public cargo-readme
|
||||||
|
(package
|
||||||
|
(name "cargo-readme")
|
||||||
|
(version "3.3.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/webern/cargo-readme.git")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32 "1jwh2j4lw1hk08aflgk7pamnhdbrzr47dc0ipzczn48k6008fm8l"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:install-source? #f
|
||||||
|
#:cargo-inputs (("rust-clap" ,rust-clap-4)
|
||||||
|
("rust-lazy-static" ,rust-lazy-static-1)
|
||||||
|
("rust-percent-encoding" ,rust-percent-encoding-2)
|
||||||
|
("rust-regex" ,rust-regex-1)
|
||||||
|
("rust-serde" ,rust-serde-1)
|
||||||
|
("rust-toml" ,rust-toml-0.8))
|
||||||
|
#:cargo-development-inputs (("rust-assert-cli" ,rust-assert-cli-0.6))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'check 'fix-test-warnings
|
||||||
|
(lambda _
|
||||||
|
;; Otherwise the test case will see the warning being emitted
|
||||||
|
;; that "config" is deprecated.
|
||||||
|
(when (file-exists? ".cargo/config")
|
||||||
|
(rename-file ".cargo/config"
|
||||||
|
".cargo/config.toml")))))))
|
||||||
|
(home-page "https://github.com/webern/cargo-readme")
|
||||||
|
(synopsis
|
||||||
|
"Cargo subcommand to generate README.md content from doc comments")
|
||||||
|
(description
|
||||||
|
"This package provides a Cargo subcommand to generate README.md content from doc
|
||||||
|
comments.")
|
||||||
|
(license (list license:expat license:asl2.0))))
|
||||||
|
|
||||||
(define-public cargo-with
|
(define-public cargo-with
|
||||||
(package
|
(package
|
||||||
(name "cargo-with")
|
(name "cargo-with")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue