mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add go-toml.
* gnu/packages/golang-xyz.scm (go-toml): New variable. Change-Id: I7b766fa7b5e7ff33d3bbe84be4a65ec75e2d6303
This commit is contained in:
parent
ade6e5c49b
commit
193aac9a4d
1 changed files with 32 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue