Subject: [PATCH 18/18] gnu: Add yq.

From: Hilton Chain <[email-masked]>
Date: Fri, 28 Jul 2023 17:07:55 +0800

* gnu/packages/web.scm (yq): New variable.
---
 gnu/packages/web.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index b2aea7940e..f3378065be 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5110,6 +5110,21 @@ (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
+                 (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")
-- 
2.41.0