all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#59210] [PATCH 0/3] Add gojq and dependencies.
@ 2022-11-12  8:12 kiasoc5 via Guix-patches via
  2022-11-12  8:15 ` [bug#59210] [PATCH 1/3] gnu: Add go-github-com-itchyny-timefmt-go kiasoc5 via Guix-patches via
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: kiasoc5 via Guix-patches via @ 2022-11-12  8:12 UTC (permalink / raw)
  To: 59210; +Cc: kiasoc5

gojq is a binary and a library so there is 1 package for each, like fzf.

kiasoc5 (3):
   gnu: Add go-github-com-itchyny-timefmt-go.
   gnu: Add go-github-com-itchyny-gojq.
   gnu: Add gojq.

  gnu/packages/web.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++
  1 file changed, 63 insertions(+)


base-commit: ad03c2d461100539aec9a32de081a320dce4f50d
-- 
2.38.1





^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#59210] [PATCH 1/3] gnu: Add go-github-com-itchyny-timefmt-go.
  2022-11-12  8:12 [bug#59210] [PATCH 0/3] Add gojq and dependencies kiasoc5 via Guix-patches via
@ 2022-11-12  8:15 ` kiasoc5 via Guix-patches via
  2022-11-12  8:15 ` [bug#59210] [PATCH 2/3] gnu: Add go-github-com-itchyny-gojq kiasoc5 via Guix-patches via
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: kiasoc5 via Guix-patches via @ 2022-11-12  8:15 UTC (permalink / raw)
  To: 59210; +Cc: kiasoc5

* gnu/packages/web (go-github-com-itchyny-timefmt-go): New variable.
---
 gnu/packages/web.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index d2c406915c..7b45f8f841 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4896,6 +4896,29 @@ (define-public jq
 you'd expect.")
     (license (list license:expat license:cc-by3.0))))
 
+(define-public go-github-com-itchyny-timefmt-go
+  (package
+    (name "go-github-com-itchyny-timefmt-go")
+    (version "0.1.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/itchyny/timefmt-go")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0z5z8hy5lbjqdxp544mf238i77n7pf7bv3psgr5gffh0630dsyag"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/itchyny/timefmt-go"))
+    (home-page "https://github.com/itchyny/timefmt-go")
+    (synopsis "Efficient time formatting library (strftime, strptime) for Golang")
+    (description
+     "@code{timefmt-go} is a Go language package for formatting and parsing date
+time strings.")
+    (license license:expat)))
+
 (define-public pup
   (let ((revision "1")
         (commit "681d7bb639334bf485476f5872c5bdab10931f9a"))
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#59210] [PATCH 2/3] gnu: Add go-github-com-itchyny-gojq.
  2022-11-12  8:12 [bug#59210] [PATCH 0/3] Add gojq and dependencies kiasoc5 via Guix-patches via
  2022-11-12  8:15 ` [bug#59210] [PATCH 1/3] gnu: Add go-github-com-itchyny-timefmt-go kiasoc5 via Guix-patches via
@ 2022-11-12  8:15 ` kiasoc5 via Guix-patches via
  2022-11-12  8:15 ` [bug#59210] [PATCH 3/3] gnu: Add gojq kiasoc5 via Guix-patches via
  2022-11-28 22:14 ` bug#59210: [PATCH 0/3] Add gojq and dependencies Ludovic Courtès
  3 siblings, 0 replies; 5+ messages in thread
From: kiasoc5 via Guix-patches via @ 2022-11-12  8:15 UTC (permalink / raw)
  To: 59210; +Cc: kiasoc5

* gnu/packages/web (go-github-com-itchyny-gojq): New variable.
---
 gnu/packages/web.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 7b45f8f841..faaaf33f74 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4919,6 +4919,37 @@ (define-public go-github-com-itchyny-timefmt-go
 time strings.")
     (license license:expat)))
 
+(define-public go-github-com-itchyny-gojq
+  (package
+    (name "go-github-com-itchyny-gojq")
+    (version "0.12.9")
+    (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/itchyny/gojq")
+               (commit (string-append "v" version))))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1m4zchhhi2428r1v0qz08drac4s63mag1pwcqzsf6n495yc3g0h0"))))
+    (build-system go-build-system)
+    (inputs
+     (list go-github-com-google-go-cmp-cmp
+           go-github-com-itchyny-timefmt-go
+           go-github-com-mattn-go-isatty
+           go-github-com-mattn-go-runewidth
+           go-gopkg-in-yaml-v3))
+    (arguments
+     (list
+      #:import-path "github.com/itchyny/gojq/cmd/gojq"
+      #:unpack-path "github.com/itchyny/gojq"))
+    (home-page "https://github.com/itchyny/gojq")
+    (synopsis "Pure Go implementation of jq")
+    (description
+     "@command{gojq} is an Go implementation and library of the jq JSON
+processor.")
+    (license license:expat)))
+
 (define-public pup
   (let ((revision "1")
         (commit "681d7bb639334bf485476f5872c5bdab10931f9a"))
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#59210] [PATCH 3/3] gnu: Add gojq.
  2022-11-12  8:12 [bug#59210] [PATCH 0/3] Add gojq and dependencies kiasoc5 via Guix-patches via
  2022-11-12  8:15 ` [bug#59210] [PATCH 1/3] gnu: Add go-github-com-itchyny-timefmt-go kiasoc5 via Guix-patches via
  2022-11-12  8:15 ` [bug#59210] [PATCH 2/3] gnu: Add go-github-com-itchyny-gojq kiasoc5 via Guix-patches via
@ 2022-11-12  8:15 ` kiasoc5 via Guix-patches via
  2022-11-28 22:14 ` bug#59210: [PATCH 0/3] Add gojq and dependencies Ludovic Courtès
  3 siblings, 0 replies; 5+ messages in thread
From: kiasoc5 via Guix-patches via @ 2022-11-12  8:15 UTC (permalink / raw)
  To: 59210; +Cc: kiasoc5

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

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index faaaf33f74..2014e7431b 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4950,6 +4950,15 @@ (define-public go-github-com-itchyny-gojq
 processor.")
     (license license:expat)))
 
+(define-public gojq
+  (package
+    (inherit go-github-com-itchyny-gojq)
+    (name "gojq")
+    (arguments
+     (ensure-keyword-arguments
+      (package-arguments go-github-com-itchyny-gojq)
+      (list #:install-source? #f)))))
+
 (define-public pup
   (let ((revision "1")
         (commit "681d7bb639334bf485476f5872c5bdab10931f9a"))
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#59210: [PATCH 0/3] Add gojq and dependencies.
  2022-11-12  8:12 [bug#59210] [PATCH 0/3] Add gojq and dependencies kiasoc5 via Guix-patches via
                   ` (2 preceding siblings ...)
  2022-11-12  8:15 ` [bug#59210] [PATCH 3/3] gnu: Add gojq kiasoc5 via Guix-patches via
@ 2022-11-28 22:14 ` Ludovic Courtès
  3 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2022-11-28 22:14 UTC (permalink / raw)
  To: kiasoc5; +Cc: 59210-done

Hi,

kiasoc5 <kiasoc5@disroot.org> skribis:

>   gnu: Add go-github-com-itchyny-timefmt-go.
>   gnu: Add go-github-com-itchyny-gojq.
>   gnu: Add gojq.

Applied, thanks!




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-28 22:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-12  8:12 [bug#59210] [PATCH 0/3] Add gojq and dependencies kiasoc5 via Guix-patches via
2022-11-12  8:15 ` [bug#59210] [PATCH 1/3] gnu: Add go-github-com-itchyny-timefmt-go kiasoc5 via Guix-patches via
2022-11-12  8:15 ` [bug#59210] [PATCH 2/3] gnu: Add go-github-com-itchyny-gojq kiasoc5 via Guix-patches via
2022-11-12  8:15 ` [bug#59210] [PATCH 3/3] gnu: Add gojq kiasoc5 via Guix-patches via
2022-11-28 22:14 ` bug#59210: [PATCH 0/3] Add gojq and dependencies Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.