From a6a12fee595c20a916b982aa4d37551bcf596aff Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Fri, 26 Dec 2025 13:24:32 +0100 Subject: gnu: Add go-github-com-go-openapi-swag-typeutils. * gnu/packages/golang-web.scm (go-github-com-go-openapi-swag-typeutils): New variable. Relates-to: https://codeberg.org/guix/guix/issues/5190 Change-Id: Iac54ef076f4c2ef34492b3be16d9c31dcf8d1b92 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-web.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index fb4329ed4b..8d54a692bf 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6738,6 +6738,43 @@ specifications knows how to deal with those.") projects.") (license license:asl2.0))) +(define-public go-github-com-go-openapi-swag-typeutils + (package + (name "go-github-com-go-openapi-swag-typeutils") + (version "0.24.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-openapi/swag") + (commit (go-version->git-ref version #:subdir "typeutils")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0p1k008zh6s1v55fi83v8ihldsvknf0wmwmc6i2ks0vw5gbwmaam")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/go-openapi/swag/conv + (for-each delete-file-recursively + (list "cmdutils" "conv" "fileutils" "jsonname" + "jsonutils" "loading" "mangling" "netutils" + "stringutils" "yamlutils")))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-openapi/swag/typeutils" + #:unpack-path "github.com/go-openapi/swag")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/go-openapi/swag") + (synopsis "Type checking utilities for go-openapi") + (description + "This package provides type checking utilities for the go-openapi and +go-swagger projects.") + (license license:asl2.0))) + (define-public go-github-com-go-openapi-validate (package (name "go-github-com-go-openapi-validate") -- cgit v1.3