~ruther/guix-local

d06a313038fb35fe0a6f56b03eae276e859ccf28 — Arthur Rodrigues 5 months ago 9dddfc8
gnu: Add go-github-com-buger-jsonparser.

* gnu/packages/golang-web.scm (go-github-com-buger-jsonparser): New variable.

Change-Id: Ib2b66d0a87d0723ca14a18c98746de657e3555cc
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 32 insertions(+), 0 deletions(-)

M gnu/packages/golang-web.scm
M gnu/packages/golang-web.scm => gnu/packages/golang-web.scm +32 -0
@@ 1758,6 1758,38 @@ differentiate between installs of Mozilla software in @code{installs.ini} and
@code{profiles.ini}.")
    (license license:expat)))

(define-public go-github-com-buger-jsonparser
  (package
    (name "go-github-com-buger-jsonparser")
    (version "1.1.1")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/buger/jsonparser")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0qv2lsh2biwxn927941gqiv5pqg7n4v58j0i536pjp7pr17pq7dp"))))
    (build-system go-build-system)
    (arguments
     (list
      #:import-path "github.com/buger/jsonparser"
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'remove-benchmark
            (lambda* (#:key import-path #:allow-other-keys)
              (with-directory-excursion (string-append "src/" import-path)
                (delete-file-recursively "benchmark")))))))
    (home-page "https://github.com/buger/jsonparser")
    (synopsis
     "Alternative JSON parser for Golang")
    (description
     "This package provides an alternative JSON parser for Go.  It does not
require to know the structure of the payload (eg.  create structs), and allows
accessing fields by providing the path to them.")
    (license license:expat)))

(define-public go-github-com-caddyserver-certmagic
  (package
    (name "go-github-com-caddyserver-certmagic")