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

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

Change-Id: I75f6421dd3609ca882fdcbe61bb5e414c7e8c48f
This commit is contained in:
Sharlatan Hellseher 2025-08-19 21:09:02 +01:00
parent 642637ca0d
commit 2fdc62e59b
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -12553,6 +12553,31 @@ arbitrary array and maps types.")
\"Optional Parameters Pattern\".")
(license license:expat)))
(define-public go-github-com-lestrrat-go-option-v2
(package
(inherit go-github-com-lestrrat-go-option)
(name "go-github-com-lestrrat-go-option-v2")
(version "2.0.0")
(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 "07w19iwqna9zml1x3zsrnm8dzq07kbwd3isf31293rm5i73rkmwq"))
(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/v2"))))
(define-public go-github-com-lestrrat-go-strftime
(package