From 1cbdf0220627081b916e41e8992058c9e22239ce Mon Sep 17 00:00:00 2001 From: Adam Mohammed Date: Sun, 11 Feb 2024 13:14:30 -0500 Subject: [PATCH] Add jq --- adam/packages/markups.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/adam/packages/markups.scm b/adam/packages/markups.scm index c5190df..6d138bd 100644 --- a/adam/packages/markups.scm +++ b/adam/packages/markups.scm @@ -26,3 +26,26 @@ (description "Yaml parser") (home-page "https://github.com/mikefarah/yq") (license license:expat))) + +;; https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 +(define-public jq + (package + (name "jq") + (version "1.7.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/jqlang/jq/releases/download/jq-" version "/jq-linux-amd64")) + (sha256 (base32 "1xcgkk8q32y5sy9km4wkvy82bzmky5rh5qxk3vk0wlafjfqcjhjr")))) + (build-system copy-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'chmod + (lambda* (#:key #:allow-other-keys) + (chmod "jq-linux-amd64" #o755)))) + #:substitutable? #f + #:install-plan '(("jq-linux-amd64" "/bin/jq")))) + (synopsis "JSON parser") + (description "JSON parser") + (home-page "https://github.com/jqlang/jq") + (license license:expat)))