gnu: Add go-toml.

* gnu/packages/golang-xyz.scm (go-toml): New variable.

Change-Id: I7b766fa7b5e7ff33d3bbe84be4a65ec75e2d6303
This commit is contained in:
Sharlatan Hellseher 2025-01-25 12:30:10 +00:00
parent ade6e5c49b
commit 193aac9a4d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -17529,6 +17529,38 @@ tools."))))
"\nThis package provides an command line interface (CLI)
tool."))))
(define-public go-toml
(package
(inherit go-github-com-pelletier-go-toml-v2)
(name "go-toml")
(arguments
(list
#:tests? #f ; tested in the library
#:install-source? #f
#:unpack-path "github.com/pelletier/go-toml"
#:phases
#~(modify-phases %standard-phases
(replace 'build
(lambda arguments
(for-each
(lambda (cmd)
(apply (assoc-ref %standard-phases 'build)
`(,@arguments #:import-path ,cmd)))
(list "github.com/pelletier/go-toml/cmd/tomljson"
"github.com/pelletier/go-toml/cmd/tomll"))))
(replace 'install
(lambda arguments
(for-each
(lambda (cmd)
(apply (assoc-ref %standard-phases 'install)
`(,@arguments #:import-path ,cmd)))
(list "github.com/pelletier/go-toml/cmd/tomljson"
"github.com/pelletier/go-toml/cmd/tomll")))))))
(description
(string-append (package-description go-github-com-pelletier-go-toml-v2)
"\nThis package provides command line interface (CLI)
tools."))))
(define-public go-tomlv
(package
(inherit go-github-com-burntsushi-toml)