gnu: go-gopkg-in-yaml-v2: Move to golang-xyz.
* gnu/packages/golang.scm (go-gopkg-in-yaml-v2): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I10f478aba8e9c836ce5cc03eb2fb59ff9f794fc5master
parent
4dcc9df560
commit
dccc807eb2
|
@ -2894,6 +2894,43 @@ Go.")
|
||||||
(package-arguments go-github-com-op-go-logging)
|
(package-arguments go-github-com-op-go-logging)
|
||||||
((#:import-path _) "gopkg.in/op/go-logging.v1")))))
|
((#:import-path _) "gopkg.in/op/go-logging.v1")))))
|
||||||
|
|
||||||
|
(define-public go-gopkg-in-yaml-v2
|
||||||
|
(package
|
||||||
|
(name "go-gopkg-in-yaml-v2")
|
||||||
|
(version "2.4.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://gopkg.in/yaml.v2")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "1pbmrpj7gcws34g8vwna4i2nhm9p6235piww36436xhyaa10cldr"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
#~(begin
|
||||||
|
;; https://github.com/go-yaml/yaml/issues/441 and
|
||||||
|
;; https://github.com/go-yaml/yaml/pull/442
|
||||||
|
;; Don't assume 64-bit wide integers
|
||||||
|
(substitute* "decode_test.go"
|
||||||
|
(("bin: (-0b1000000000000000000000000000000000000000000000000000000000000000)" all number)
|
||||||
|
(string-append "int64_min_base2: " number))
|
||||||
|
(("map\\[string\\]interface\\{\\}\\{\"bin\": -9223372036854775808\\}")
|
||||||
|
"map[string]int64{\"int64_min_base2\": math.MinInt64}"))))))
|
||||||
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:import-path "gopkg.in/yaml.v2"))
|
||||||
|
(native-inputs
|
||||||
|
(list go-gopkg-in-check-v1))
|
||||||
|
(home-page "https://gopkg.in/yaml.v2")
|
||||||
|
(synopsis "YAML reader and writer for the Go language")
|
||||||
|
(description
|
||||||
|
"This package provides a Go library for encode and decode YAML
|
||||||
|
values.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
;;; Executables:
|
;;; Executables:
|
||||||
;;;
|
;;;
|
||||||
|
|
|
@ -4240,43 +4240,6 @@ which satisfies the cron expression.")
|
||||||
(description "Go library for ini files")
|
(description "Go library for ini files")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public go-gopkg-in-yaml-v2
|
|
||||||
(package
|
|
||||||
(name "go-gopkg-in-yaml-v2")
|
|
||||||
(version "2.4.0")
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method git-fetch)
|
|
||||||
(uri (git-reference
|
|
||||||
(url "https://gopkg.in/yaml.v2.git")
|
|
||||||
(commit (string-append "v" version))))
|
|
||||||
(file-name (git-file-name name version))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"1pbmrpj7gcws34g8vwna4i2nhm9p6235piww36436xhyaa10cldr"))
|
|
||||||
(modules '((guix build utils)))
|
|
||||||
(snippet
|
|
||||||
'(begin
|
|
||||||
;; https://github.com/go-yaml/yaml/issues/441 and
|
|
||||||
;; https://github.com/go-yaml/yaml/pull/442
|
|
||||||
;; Don't assume 64-bit wide integers
|
|
||||||
(substitute* "decode_test.go"
|
|
||||||
(("bin: (-0b1000000000000000000000000000000000000000000000000000000000000000)" all number)
|
|
||||||
(string-append "int64_min_base2: " number))
|
|
||||||
(("map\\[string\\]interface\\{\\}\\{\"bin\": -9223372036854775808\\}")
|
|
||||||
"map[string]int64{\"int64_min_base2\": math.MinInt64}"))))))
|
|
||||||
(build-system go-build-system)
|
|
||||||
(arguments
|
|
||||||
'(#:import-path "gopkg.in/yaml.v2"))
|
|
||||||
(native-inputs
|
|
||||||
(list go-gopkg-in-check-v1))
|
|
||||||
(home-page "https://gopkg.in/yaml.v2")
|
|
||||||
(synopsis "YAML reader and writer for the Go language")
|
|
||||||
(description
|
|
||||||
"This package provides a Go library for encode and decode YAML
|
|
||||||
values.")
|
|
||||||
(license license:asl2.0)))
|
|
||||||
|
|
||||||
(define-public go-gopkg-in-yaml-v3
|
(define-public go-gopkg-in-yaml-v3
|
||||||
(package
|
(package
|
||||||
(name "go-gopkg-in-yaml-v3")
|
(name "go-gopkg-in-yaml-v3")
|
||||||
|
|
Reference in New Issue