[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: gnu: Add gron.
From: |
guix-commits |
Subject: |
04/06: gnu: Add gron. |
Date: |
Wed, 23 Dec 2020 11:31:49 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit a7adc542f2948bf9a90d84e87cc0888a99ba7482
Author: Joseph LaFreniere <joseph@lafreniere.xyz>
AuthorDate: Sat Nov 28 23:08:01 2020 -0600
gnu: Add gron.
* gnu/packages/golang.scm (go-github-com-tomnomnom-gron): New variable.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/golang.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index af007e3..c41ed0b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1191,6 +1191,46 @@ Features include:
optimized for performance yet simple to use.")
(license license:expat))))
+(define-public go-github-com-tomnomnom-gron
+ (package
+ (name "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"))
- branch master updated (7624ebb -> 4994e1f), guix-commits, 2020/12/23
- 02/06: gnu: Add go-github-com-nwidger-jsoncolor., guix-commits, 2020/12/23
- 01/06: gnu: guix: Update to 7624ebb., guix-commits, 2020/12/23
- 05/06: etc: snippets: Add new build systems to package snippet., guix-commits, 2020/12/23
- 03/06: gnu: go-github-com-mattn-go-colorable: Update to 0.1.8., guix-commits, 2020/12/23
- 04/06: gnu: Add gron.,
guix-commits <=
- 06/06: gnu: Add uriparser., guix-commits, 2020/12/23