diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-02-15 19:07:55 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-05-26 16:50:08 +0100 |
commit | 47e6774401f6ef4d6f5250985d53026bf63fdfa1 (patch) | |
tree | 5c6a92de985364482de1bd5168a13cf9aeb5500c /gnu/packages/golang-xyz.scm | |
parent | 74f998f0f6b52b7bcd4421bcf0477ef576ae0c75 (diff) |
gnu: Add go-github-com-ghodss-yaml.
* gnu/packages/golang-xyz.scm (go-github-com-ghodss-yaml): New variable.
Change-Id: If8172ffc3c41545e4dd247bf5c2229a95ac09970
Diffstat (limited to 'gnu/packages/golang-xyz.scm')
-rw-r--r-- | gnu/packages/golang-xyz.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index bd28043968..7c15953341 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3753,6 +3753,38 @@ submodules: font files in your system's user and system font directories.") (license license:expat))) +(define-public go-github-com-ghodss-yaml + (package + (name "go-github-com-ghodss-yaml") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ghodss/yaml") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0skwmimpy7hlh7pva2slpcplnm912rp3igs98xnqmn859kwa5v8g")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ghodss/yaml")) + (propagated-inputs + (list go-gopkg-in-yaml-v2)) + (home-page "https://github.com/ghodss/yaml") + (synopsis "YAML marshaling and unmarshaling support for Go") + (description + "This package provides a wrapper around +@url{https://github.com/go-yaml/yaml, go-yaml} designed to enable a better way +of handling YAML when marshaling to and from structs. + +It first converts YAML to JSON using go-yaml and then uses @code{json.Marshal} +and @code{json.Unmarshal} to convert to or from the struct. This means that +it effectively reuses the JSON struct tags as well as the custom JSON methods +@code{MarshalJSON} and @code{UnmarshalJSON} unlike go-yaml.") + (license license:expat))) + (define-public go-github-com-go-md2man (package (name "go-github-com-go-md2man") |