guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

24/24: gnu: Add yq.


From: guix-commits
Subject: 24/24: gnu: Add yq.
Date: Fri, 16 Feb 2024 09:21:14 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit 5e556a19d21fa4554e6264de5f7cbfea64b5781c
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Sat Jul 29 01:20:09 2023 +0800

    gnu: Add yq.
    
    * gnu/packages/web.scm (yq): New variable.
    
    Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/web.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 5997cb176d..11bceb1da7 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5248,6 +5248,22 @@ processor.  It uses @code{jq}-like syntax but works with 
YAML files as well as
 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]