[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/32: gnu: Add go-github-com-dustin-gojson.
From: |
guix-commits |
Subject: |
16/32: gnu: Add go-github-com-dustin-gojson. |
Date: |
Mon, 19 Feb 2024 18:41:01 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit 930692feb0d26c2d9ab5715a2a84196eef13f221
Author: Artyom V. Poptsov <poptsov.artyom@gmail.com>
AuthorDate: Wed Feb 14 23:55:37 2024 +0300
gnu: Add go-github-com-dustin-gojson.
* gnu/packages/golang.scm (go-github-com-dustin-gojson): New variable.
Change-Id: Ifc3df4e7a2cdf21bf0725a848123930d61d048e3
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index b6e582fdc5..d6aa5d0538 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -519,6 +519,42 @@ Mark} detection.")
atimes for files.")
(license license:expat)))
+(define-public go-github-com-dustin-gojson
+ (package
+ (name "go-github-com-dustin-gojson")
+ (version "v0.0.0-20160307161227-2e71ec9dd5ad")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dustin/gojson")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1vrmmyn7l568l1k71mxd54iqf3d54pn86cf278i374j86jn0bdxf"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ ;; Fix the library to work with go-1.21.
+ (substitute* "decode.go"
+ (("trying to unmarshal unquoted value into")
+ "trying to unmarshal unquoted value %v into"))
+ (substitute* "decode_test.go"
+ (("t.Fatalf\\(\"Unmarshal: %v\"\\)")
+ "t.Fatalf(\"Unmarshal: %v\", data)")) ;))))
+ (substitute* "scanner.go"
+ (("s := strconv.Quote\\(string\\(c\\)\\)")
+ "s := strconv.QuoteRune(rune(c))"))))))
+ (build-system go-build-system)
+ (arguments
+ `(#:import-path "github.com/dustin/gojson"
+ #:go ,go-1.21))
+ (home-page "https://github.com/dustin/gojson")
+ (synopsis "Extended Golang's @code{encoding/json} module with the public
scanner API")
+ (description
+ "This package provides a fork of Golang's @code{encoding/json} with the
+scanner API made public.")
+ (license license:bsd-3)))
+
(define-public go-github-com-elliotchance-orderedmap
(package
(name "go-github-com-elliotchance-orderedmap")
- 17/32: gnu: go-github-com-alecthomas-chroma: Move to golang-xyz., (continued)
- 17/32: gnu: go-github-com-alecthomas-chroma: Move to golang-xyz., guix-commits, 2024/02/19
- 19/32: gnu: go-github-com-alecthomas-chroma: Remove bundled files., guix-commits, 2024/02/19
- 10/32: gnu: Add go-github-com-orisano-pixelmatch., guix-commits, 2024/02/19
- 24/32: gnu: go-github-com-songmu-gitconfig: Fix build., guix-commits, 2024/02/19
- 18/32: gnu: go-github-com-alecthomas-chroma: Update to 0.10.0., guix-commits, 2024/02/19
- 20/32: gnu: Add go-github-com-alecthomas-chroma-v2., guix-commits, 2024/02/19
- 27/32: gnu: go-github-go-git: Remove labels., guix-commits, 2024/02/19
- 28/32: gnu: go-github-go-git: Adjust imports., guix-commits, 2024/02/19
- 23/32: gnu: go-github-com-songmu-gitconfig: Move to golang-xyz., guix-commits, 2024/02/19
- 12/32: gnu: Add go-github-com-coocood-freecache., guix-commits, 2024/02/19
- 16/32: gnu: Add go-github-com-dustin-gojson.,
guix-commits <=
- 22/32: gnu: go-github-com-alecthomas-assert-v2: Update to 2.5.0., guix-commits, 2024/02/19
- 26/32: gnu: ghq: Fix build., guix-commits, 2024/02/19
- 29/32: gnu: Add go-github-com-bmatcuk-doublestar-v2., guix-commits, 2024/02/19
- 30/32: gnu: Add go-github-com-google-go-github-v33., guix-commits, 2024/02/19
- 31/32: gnu: chezmoi: Sort inputs alphabetically., guix-commits, 2024/02/19
- 13/32: gnu: Add go-github-com-golang-jwt-jwt-v4., guix-commits, 2024/02/19
- 32/32: gnu: chezmoi: Update to 1.8.10., guix-commits, 2024/02/19
- 08/32: gnu: go-github-com-valyala-fasthttp: Add missing input., guix-commits, 2024/02/19
- 21/32: gnu: go-github-com-alecthomas-assert: Depricate package., guix-commits, 2024/02/19
- 25/32: gnu: ghq: Remove package labels., guix-commits, 2024/02/19