Add yq package
This commit is contained in:
28
adam/packages/markups.scm
Normal file
28
adam/packages/markups.scm
Normal file
@@ -0,0 +1,28 @@
|
||||
(define-module (adam packages markups)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix build-system copy)
|
||||
#:use-module ((guix licenses) #:prefix license:))
|
||||
|
||||
;;https://github.com/mikefarah/yq/releases/download/v4.40.7/yq_linux_amd64
|
||||
(define-public yq
|
||||
(package
|
||||
(name "yq")
|
||||
(version "4.40.7")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://github.com/mikefarah/yq/releases/download/v" version "/yq_linux_amd64"))
|
||||
(sha256 (base32 "1va8ky7ipsnp226amyldmqhcjz7009scing7c67px7x40f9yw4sg"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
`(#:phases (modify-phases %standard-phases
|
||||
(add-after 'unpack 'chmod
|
||||
(lambda* (#:key #:allow-other-keys)
|
||||
(chmod "yq_linux_amd64" #o755))))
|
||||
#:substitutable? #f
|
||||
#:install-plan '(("yq_linux_amd64" "/bin/yq"))))
|
||||
(synopsis "Yaml parser")
|
||||
(description "Yaml parser")
|
||||
(home-page "https://github.com/mikefarah/yq")
|
||||
(license license:expat)))
|
||||
Reference in New Issue
Block a user