1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-28 05:00:29 +02:00

gnu: Add go-github-com-masterminds-sprig.

* gnu/packages/golang-xyz.scm (go-github-com-masterminds-sprig): New variable.
(go-github-com-masterminds-sprig-v3): Inherit from go-github-com-masterminds-sprig.

Change-Id: Ie6349be6ebced2c4688dee0463cc635b101bfd93
This commit is contained in:
Sharlatan Hellseher
2026-02-05 20:38:54 +00:00
parent 33ee29bc87
commit 46ef0552fd

View File

@@ -15174,8 +15174,45 @@ semantic versions. Specifically it provides the ability to:
@end itemize")
(license license:expat)))
(define-public go-github-com-masterminds-sprig
(package
(name "go-github-com-masterminds-sprig")
(version "2.22.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Masterminds/sprig")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "09dzwhj4zh3p6f1jhyic16n4qdnvpamz7hyk9fycpm4b1jfq63gd"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/Masterminds/sprig"
#:test-flags
#~(list "-skip" "TestCamelCase|TestShuffle|TestGetHostByName")))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-google-uuid
go-github-com-huandu-xstrings
go-github-com-imdario-mergo
go-github-com-masterminds-goutils
go-github-com-masterminds-semver
go-github-com-mitchellh-copystructure
go-golang-org-x-crypto))
(home-page "https://github.com/Masterminds/sprig/")
(synopsis "Template functions for Go templates")
(description
"Sprig is a library that provides more than 100 commonly used template
functions.")
(license license:expat)))
(define-public go-github-com-masterminds-sprig-v3
(package
(inherit go-github-com-masterminds-sprig)
(name "go-github-com-masterminds-sprig-v3")
(version "3.3.0")
(source
@@ -15192,8 +15229,6 @@ semantic versions. Specifically it provides the ability to:
(list
#:import-path "github.com/Masterminds/sprig/v3"
#:test-flags #~(list "-skip" "TestGetHostByName")))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-dario-cat-mergo
go-github-com-google-uuid
@@ -15203,13 +15238,7 @@ semantic versions. Specifically it provides the ability to:
go-github-com-mitchellh-copystructure
go-github-com-shopspring-decimal
go-github-com-spf13-cast
go-golang-org-x-crypto))
(home-page "https://github.com/Masterminds/sprig/")
(synopsis "Template functions for Go templates")
(description
"Sprig is a library that provides more than 100 commonly used template
functions.")
(license license:expat)))
go-golang-org-x-crypto))))
(define-public go-github-com-masterminds-squirrel
(package