gnu: Add go-github-com-lestrrat-go-option.

* gnu/packages/golang-xyz.scm (go-github-com-lestrrat-go-option): New variable.

Change-Id: I71007172478d157a2a13d11171e34d996f02fbba
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Arthur Rodrigues 2025-08-17 15:42:56 -03:00 committed by Sharlatan Hellseher
parent 63d9790df6
commit 0f1cb84a5f
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -12454,6 +12454,42 @@ or during the tests temporarily change the value of an environment variable in
Golang.")
(license license:expat)))
(define-public go-github-com-lestrrat-go-option
(package
(name "go-github-com-lestrrat-go-option")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lestrrat-go/option")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0p9744hpdxsnimha5i0gyn7hxn2fy3dxqhlpqvj5s3pc5xv3s14h"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Submodules with their own go.mod files and packaged separately:
;;
;; - github.com/lestrrat-go/option/cmd/genoptions
(delete-file-recursively "cmd/genoptions")))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/lestrrat-go/option"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-lestrrat-go-blackmagic))
(home-page "https://github.com/lestrrat-go/option")
(synopsis "Base option type for Go")
(description
"This package provides a Golang implementation of the Base object for the
\"Optional Parameters Pattern\".")
(license license:expat)))
(define-public go-github-com-lestrrat-go-strftime
(package
(name "go-github-com-lestrrat-go-strftime")