gnu: vale: Refresh package style.

* gnu/packages/textutils.scm (vale):
[source]: Remove some packaged module from vendor.
[arguments]: Move above native-inputs. Swap to list style, do not
install source.
[description]: Fix indentation.

Change-Id: I3efbffc74e76ba2c88467bfc7e79b06d4d05ee18
This commit is contained in:
Sharlatan Hellseher 2024-04-09 16:48:00 +01:00
parent 0f3f787043
commit eed3fcceed
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1433,23 +1433,33 @@ (define-public vale
(commit (string-append "v" version))))
(sha256
(base32 "0d07fwha2220m8j24h527xl0gnl3svvyaywflgk5292d6g49ach2"))
(file-name (git-file-name name version))))
(file-name (git-file-name name version))
(modules '((guix build utils)))
;; Remove some vendor modules.
;; TODO: Pack all of them and remove vendor directory completely.
(snippet
'(for-each
delete-file-recursively
(list "vendor/github.com/mitchellh/mapstructure"
"vendor/github.com/olekukonko/tablewriter"
"vendor/github.com/spf13/afero"
"vendor/github.com/urfave/cli")))))
(build-system go-build-system)
(arguments
(list #:install-source? #f
#:import-path "github.com/errata-ai/vale"))
(native-inputs
(list go-github-com-mitchellh-mapstructure
go-github-com-olekukonko-tablewriter
go-github-com-spf13-afero
go-github-com-urfave-cli))
(arguments
`(#:import-path "github.com/errata-ai/vale"
#:install-source? #f))
(home-page "https://github.com/errata-ai/vale")
(synopsis "Fully customizable syntax-aware linter that focuses on your style")
(description
"Vale is a fully extensible linter that focuses on your own writing style
by making use of rules in individual YAML files. It is syntax-aware on markup
languages such as HTML, Markdown, Asciidoc, and reStructuredText. The community
around it also has a list of style guides implemented with Vale in
languages such as HTML, Markdown, Asciidoc, and reStructuredText. The
community around it also has a list of style guides implemented with Vale in
@url{https://github.com/errata-ai/styles, their styles repo}.")
(license license:expat)))