all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#44940] [PATCH 1/4] gnu: Add go-github-com-nwidger-jsoncolor.
@ 2020-11-29  4:58 Joseph LaFreniere
  2020-11-29  5:08 ` [bug#44940] [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8 Joseph LaFreniere
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph LaFreniere @ 2020-11-29  4:58 UTC (permalink / raw)
  To: 44940

[-- Attachment #1: Type: text/plain, Size: 43 bytes --]

Patch file attached.

--
Joseph LaFreniere

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-go-github-com-nwidger-jsoncolor.patch --]
[-- Type: text/x-patch, Size: 1873 bytes --]

From 1db67f6b7cac25a16913776431c4d3bf97ba1c9f Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sat, 28 Nov 2020 22:25:35 -0600
Subject: [PATCH 1/4] gnu: Add go-github-com-nwidger-jsoncolor.

* gnu/packages/golang.scm (go-github-com-nwidger-jsoncolor): New variable.
---
 gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 92533cfd50..72f43efd8a 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5134,6 +5134,33 @@ style your output, without you having to deal with all kinds of weird ANSI
 escape sequences and color conversions.")
     (license license:expat)))
 
+(define-public go-github-com-nwidger-jsoncolor
+  (package
+    (name "go-github-com-nwidger-jsoncolor")
+    (version "0.3.0")
+    (home-page "https://github.com/nwidger/jsoncolor")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "13rd146pnj7qm70r1333gyd1f61x40nafxlpvdxlci9h7mx8c5p8"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "github.com/nwidger/jsoncolor"))
+    (native-inputs
+     `(("go-github-com-fatih-color" ,go-github-com-fatih-color)))
+    (synopsis "Colorized JSON marshalling and encoding")
+    (description
+     "@code{jsoncolor} is a drop-in replacement for @code{encoding/json}'s
+@code{Marshal} and @code{MarshalIndent} functions and @code{Encoder} type
+which produce colorized output using github.com/fatih/color.")
+    (license license:expat)))
+
 (define-public go-github-com-olekukonko-tablewriter
   (package
     (name "go-github-com-olekukonko-tablewriter")
-- 
2.29.2


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

* [bug#44940] [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8.
  2020-11-29  4:58 [bug#44940] [PATCH 1/4] gnu: Add go-github-com-nwidger-jsoncolor Joseph LaFreniere
@ 2020-11-29  5:08 ` Joseph LaFreniere
  2020-11-29  5:08   ` [bug#44940] [PATCH 3/4] gnu: Add go-github-com-tomnomnom-gron Joseph LaFreniere
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Joseph LaFreniere @ 2020-11-29  5:08 UTC (permalink / raw)
  To: 44940; +Cc: joseph

* gnu/packages/golang.scm (go-github-com-mattn-go-colorable): Update to 0.1.8.
---
 gnu/packages/golang.scm | 48 ++++++++++++++++++++---------------------
 1 file changed, 23 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 72f43efd8a..cb7fe6e3bb 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1965,32 +1965,30 @@ terminal.")
     (license license:expat)))
 
 (define-public go-github-com-mattn-go-colorable
-  (let ((commit "efa589957cd060542a26d2dd7832fd6a6c6c3ade")
-        (revision "0"))
-    (package
-      (name "go-github-com-mattn-go-colorable")
-      (version (git-version "0.0.0" revision commit))
-      (source
-       (origin
-         (method git-fetch)
-         (uri (git-reference
-               (url "https://github.com/mattn/go-colorable")
-               (commit commit)))
-         (file-name (git-file-name name version))
-         (sha256
-          (base32
-           "0kshi4hvm0ayrsxqxy0599iv81kryhd2fn9lwjyczpj593cq069r"))))
-      (build-system go-build-system)
-      (native-inputs
-       `(("go-github-com-mattn-go-isatty"
-          ,go-github-com-mattn-go-isatty)))
-      (arguments
-       '(#:import-path "github.com/mattn/go-colorable"))
-      (home-page "https://github.com/mattn/go-colorable")
-      (synopsis "Handle ANSI color escapes on Windows")
-      (description "This package provides @code{colorable}, a module that
+  (package
+    (name "go-github-com-mattn-go-colorable")
+    (version "0.1.8")
+    (home-page "https://github.com/mattn/go-colorable")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0q34zqwbnls72md8q8mhj368s7p3i4xspvs3rk8fs76s0pn7dr2l"))))
+    (build-system go-build-system)
+    (native-inputs
+     `(("go-github-com-mattn-go-isatty"
+        ,go-github-com-mattn-go-isatty)))
+    (arguments
+     '(#:import-path "github.com/mattn/go-colorable"))
+    (synopsis "Handle ANSI color escapes on Windows")
+    (description "This package provides @code{colorable}, a module that
 makes it possible to handle ANSI color escapes on Windows.")
-      (license license:expat))))
+    (license license:expat)))
 
 (define-public go-github-com-mattn-go-pointer
   (let ((commit "a0a44394634f41e4992b173b24f14fecd3318a67")
-- 
2.29.2





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

* [bug#44940] [PATCH 3/4] gnu: Add go-github-com-tomnomnom-gron.
  2020-11-29  5:08 ` [bug#44940] [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8 Joseph LaFreniere
@ 2020-11-29  5:08   ` Joseph LaFreniere
  2020-11-29  5:08   ` [bug#44940] [PATCH 4/4] gnu: Add gron Joseph LaFreniere
  2020-12-23 16:07   ` bug#44940: [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8 Ludovic Courtès
  2 siblings, 0 replies; 6+ messages in thread
From: Joseph LaFreniere @ 2020-11-29  5:08 UTC (permalink / raw)
  To: 44940; +Cc: joseph

* gnu/packages/golang.scm (go-github-com-tomnomnom-gron): New variable.
---
 gnu/packages/golang.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index cb7fe6e3bb..a4f0c80ce9 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1135,6 +1135,46 @@ Features include:
 optimized for performance yet simple to use.")
       (license license:expat))))
 
+(define-public go-github-com-tomnomnom-gron
+  (package
+    (name "go-github-com-tomnomnom-gron")
+    (version "0.6.0")
+    (home-page "https://github.com/tomnomnom/gron")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "05f3w4zr15wd7xk75l12y5kip4gnv719a2x9w2hy23q3pnss9wk0"))))
+    (build-system go-build-system)
+    (arguments
+     (let ((import-path "github.com/tomnomnom/gron"))
+       `(#:import-path ,import-path
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'check 'remove-non-source
+             (lambda _
+               (for-each (lambda (dir)
+                           (delete-file-recursively
+                            (string-append "src/" ,import-path dir)))
+                         '("/docs" "/script" "/testdata"))
+               #t))))))
+    (inputs
+     `(("github.com/fatih/color" ,go-github-com-fatih-color)
+       ("github.com/mattn/go-colorable" ,go-github-com-mattn-go-colorable)
+       ("github.com/mattn/go-isatty" ,go-github-com-mattn-go-isatty)
+       ("github.com/nwidger/jsoncolor" ,go-github-com-nwidger-jsoncolor)
+       ("github.com/pkg/errors" ,go-github-com-pkg-errors)))
+    (synopsis "Transform JSON to make it easier to grep")
+    (description
+     "This package transforms JSON into discrete assignments to make it easier
+to use line-based tools such as grep to search for what you want and see the
+absolute \"path\" to it.")
+    (license license:expat)))
+
 (define-public go-github-com-tv42-httpunix
   (let ((commit "2ba4b9c3382c77e7b9ea89d00746e6111d142a22")
         (revision "0"))
-- 
2.29.2





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

* [bug#44940] [PATCH 4/4] gnu: Add gron.
  2020-11-29  5:08 ` [bug#44940] [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8 Joseph LaFreniere
  2020-11-29  5:08   ` [bug#44940] [PATCH 3/4] gnu: Add go-github-com-tomnomnom-gron Joseph LaFreniere
@ 2020-11-29  5:08   ` Joseph LaFreniere
  2020-12-23 16:07   ` bug#44940: [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8 Ludovic Courtès
  2 siblings, 0 replies; 6+ messages in thread
From: Joseph LaFreniere @ 2020-11-29  5:08 UTC (permalink / raw)
  To: 44940; +Cc: joseph

* gnu/packages/golang.scm (gron): New variable.
---
 gnu/packages/golang.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index a4f0c80ce9..2b4de0cd4f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1175,6 +1175,8 @@ to use line-based tools such as grep to search for what you want and see the
 absolute \"path\" to it.")
     (license license:expat)))
 
+(define-public gron go-github-com-tomnomnom-gron)
+
 (define-public go-github-com-tv42-httpunix
   (let ((commit "2ba4b9c3382c77e7b9ea89d00746e6111d142a22")
         (revision "0"))
-- 
2.29.2





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

* bug#44940: [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8.
  2020-11-29  5:08 ` [bug#44940] [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8 Joseph LaFreniere
  2020-11-29  5:08   ` [bug#44940] [PATCH 3/4] gnu: Add go-github-com-tomnomnom-gron Joseph LaFreniere
  2020-11-29  5:08   ` [bug#44940] [PATCH 4/4] gnu: Add gron Joseph LaFreniere
@ 2020-12-23 16:07   ` Ludovic Courtès
  2020-12-27 20:20     ` [bug#44940] " Joseph LaFreniere
  2 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2020-12-23 16:07 UTC (permalink / raw)
  To: Joseph LaFreniere; +Cc: 44940-done

Hi,

Joseph LaFreniere <joseph@lafreniere.xyz> skribis:

> * gnu/packages/golang.scm (go-github-com-mattn-go-colorable): Update to 0.1.8.

Applied.

> * gnu/packages/golang.scm (go-github-com-tomnomnom-gron): New variable.

Applied, but I changed the ‘name’ field to ‘gron’, as is commonly done
for applications.

> * gnu/packages/golang.scm (gron): New variable.

This patch has no effect; perhaps what you wanted is for the package
name to be ‘gron’, like I did above?

Thanks,
Ludo’.




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

* [bug#44940] [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8.
  2020-12-23 16:07   ` bug#44940: [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8 Ludovic Courtès
@ 2020-12-27 20:20     ` Joseph LaFreniere
  0 siblings, 0 replies; 6+ messages in thread
From: Joseph LaFreniere @ 2020-12-27 20:20 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 44940-done


Ludovic Courtès <ludo@gnu.org> writes:
>> * gnu/packages/golang.scm (go-github-com-tomnomnom-gron): New 
>> variable.
>
> Applied, but I changed the ‘name’ field to ‘gron’, as is 
> commonly done
> for applications.

Noted.  I had originally provided the full, Go package-style name 
in the event that gron were ever used as a dependency by another 
Go package.

>> * gnu/packages/golang.scm (gron): New variable.
>
> This patch has no effect; perhaps what you wanted is for the 
> package
> name to be ‘gron’, like I did above?

Yes, that was my intent.

Thank you for merging!

--
Joseph LaFreniere




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

end of thread, other threads:[~2020-12-27 20:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-29  4:58 [bug#44940] [PATCH 1/4] gnu: Add go-github-com-nwidger-jsoncolor Joseph LaFreniere
2020-11-29  5:08 ` [bug#44940] [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8 Joseph LaFreniere
2020-11-29  5:08   ` [bug#44940] [PATCH 3/4] gnu: Add go-github-com-tomnomnom-gron Joseph LaFreniere
2020-11-29  5:08   ` [bug#44940] [PATCH 4/4] gnu: Add gron Joseph LaFreniere
2020-12-23 16:07   ` bug#44940: [PATCH 2/4] gnu: go-github-com-mattn-go-colorable: Update to 0.1.8 Ludovic Courtès
2020-12-27 20:20     ` [bug#44940] " Joseph LaFreniere

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.