From d06a313038fb35fe0a6f56b03eae276e859ccf28 Mon Sep 17 00:00:00 2001 From: Arthur Rodrigues Date: Sun, 26 Oct 2025 22:04:45 +0000 Subject: [PATCH] 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 --- gnu/packages/golang-web.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index d9228be12fc45be690fb3b0f5c2d93fda8ea3a69..ed5da6bfddb63ec21b3c1241b701f026311f8959 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -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")