From d8e9bf82093b71e084d842052d4918e19a020a8e Mon Sep 17 00:00:00 2001 From: Aleksandr Lebedev Date: Sun, 9 Nov 2025 22:45:14 +0000 Subject: [PATCH] gnu: Add go-github-com-danielgtaylor-shorthand-v2. * gnu/packages/golang-xyz.scm (go-github-com-danielgtaylor-shorthand-v2): New variable. Change-Id: I8f79be5cc71ed2c548539698f70061fad0f0ce59 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7403f7799a2..052e8d821ba 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5578,6 +5578,44 @@ for use in templating languages (e.g. for-loop variable selection, if-statement evaluation) so is minimal in what it supports by design.") (license license:expat))) +(define-public go-github-com-danielgtaylor-shorthand-v2 + (package + (name "go-github-com-danielgtaylor-shorthand-v2") + (version "2.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/danielgtaylor/shorthand") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17s4jjzfz10lavwnir8cd6nwsf15hrm38y87f7w2pi9hv40x7vn9")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/danielgtaylor/shorthand/cmd/j + (delete-file-recursively "cmd"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/danielgtaylor/shorthand/v2" + #:test-flags + #~(list "-vet=off"))) ;Go@1.24 forces vet, but tests are not ready yet. + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-fxamacker-cbor-v2 + go-github-com-danielgtaylor-mexpr)) + (home-page "https://github.com/danielgtaylor/shorthand") + (synopsis "Structured Data Shorthand Syntax") + (description + "Shorthand is a superset and friendlier variant of JSON designed with +several use-cases in mind..") + (license license:expat))) + (define-public go-github-com-dannav-hhmmss (package (name "go-github-com-dannav-hhmmss")