From: Joseph LaFreniere <joseph@lafreniere.xyz>
To: 44940@debbugs.gnu.org
Cc: joseph@lafreniere.xyz
Subject: [bug#44940] [PATCH 3/4] gnu: Add go-github-com-tomnomnom-gron.
Date: Sat, 28 Nov 2020 23:08:01 -0600 [thread overview]
Message-ID: <20201129050802.47551-2-joseph@lafreniere.xyz> (raw)
In-Reply-To: <20201129050802.47551-1-joseph@lafreniere.xyz>
* 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
next prev parent reply other threads:[~2020-11-29 5:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Joseph LaFreniere [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201129050802.47551-2-joseph@lafreniere.xyz \
--to=joseph@lafreniere.xyz \
--cc=44940@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.