From 0f1cb84a5f96888c91d6a11aae0825852ed3f349 Mon Sep 17 00:00:00 2001 From: Arthur Rodrigues Date: Sun, 17 Aug 2025 15:42:56 -0300 Subject: [PATCH] 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 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ba73ca06de5..701a403ca56 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -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")