diff --git a/adam/packages/markups.scm b/adam/packages/markups.scm new file mode 100644 index 0000000..c5190df --- /dev/null +++ b/adam/packages/markups.scm @@ -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)))