From 193aac9a4d8f3f48b93c9e9f4abd11ff2ed38162 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 12:30:10 +0000 Subject: [PATCH] gnu: Add go-toml. * gnu/packages/golang-xyz.scm (go-toml): New variable. Change-Id: I7b766fa7b5e7ff33d3bbe84be4a65ec75e2d6303 --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4cd014e627d3867ec7c2fffde9b03f803e452875..d6456a814c13f892319d6b26ad596457e26c1f6d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -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)