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>
This commit is contained in:
Arthur Rodrigues
2025-10-26 22:04:45 +00:00
committed by Sharlatan Hellseher
parent 9dddfc8849
commit d06a313038

View File

@@ -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")