From 6d7bce39d5ae5e7179eea13c69a75a6ad1da0fd7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 17:20:27 +0000 Subject: [PATCH] gnu: Add go-github-com-tomwright-dasel-v2. * gnu/packages/golang-xyz.scm (go-github-com-tomwright-dasel-v2): New variable. Change-Id: I92e2cc4d4e04663d425cc0719c6f9faf84bfe905 --- gnu/packages/golang-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5fc38079bee7cd7dac0d34a99e0b471f5610c7ab..73244a8de951ff8f4b7f6f2021bbfe15a941c997 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -14440,6 +14440,41 @@ supported by the time package @end itemize") (license license:expat))) +(define-public go-github-com-tomwright-dasel-v2 + (package + (name "go-github-com-tomwright-dasel-v2") + (version "2.8.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/TomWright/dasel") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1qh32gq0x0lc4j4w326skxw4nblf2v71ychd8dk6h3ra5d22bbmy")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.22 + #:embed-files #~(list ".*\\.xml") + #:import-path "github.com/tomwright/dasel/v2")) + (propagated-inputs + (list go-github-com-alecthomas-chroma-v2 + go-github-com-clbanning-mxj-v2 + go-github-com-pelletier-go-toml-v2 + go-github-com-spf13-cobra + go-golang-org-x-net + go-golang-org-x-text + go-gopkg-in-yaml-v3)) + (home-page "https://github.com/tomwright/dasel") + (synopsis "Tool to work with JSON, TOML, YAML, XML and CSV files") + (description + "Dasel (short for data-selector) allows you to query and modify data +structures using selector strings. It's similar to @code{jq}/@code{yq}, but +supports JSON, YAML, TOML, XML and CSV with zero runtime dependencies.") + (license license:expat))) + (define-public go-github-com-twpayne-go-shell (package (name "go-github-com-twpayne-go-shell")