mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
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>
This commit is contained in:
parent
084ce22aa3
commit
930692feb0
1 changed files with 36 additions and 0 deletions
|
@ -519,6 +519,42 @@ (define-public go-github-com-djherbis-atime
|
|||
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")
|
||||
|
|
Loading…
Reference in a new issue