gnu: Add yq.

* gnu/packages/web.scm (yq): New variable.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Hilton Chain 2023-07-29 01:20:09 +08:00 committed by Sharlatan Hellseher
parent 8b70d43653
commit 5e556a19d2
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -5248,6 +5248,22 @@ (define-public go-github-com-mikefarah-yq-v4
JSON, XML, properties, CSV and TSV.")
(license license:expat)))
(define-public yq
(package
(inherit go-github-com-mikefarah-yq-v4)
(name "yq")
(arguments
(list #:install-source? #f
#:import-path "github.com/mikefarah/yq/v4"
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'rename-binary
(lambda _
(rename-file (string-append #$output "/bin/v4")
(string-append #$output "/bin/yq")))))))
(propagated-inputs '())
(inputs (package-propagated-inputs go-github-com-mikefarah-yq-v4))))
(define-public go-github-com-itchyny-timefmt-go
(package
(name "go-github-com-itchyny-timefmt-go")