gnu: Add go-github-com-pborman-getopt-v2.

* gnu/packages/golang-xyz.scm (go-github-com-pborman-getopt): Downgrade
to 1.0.0 to reflect go.mod import path.
[source] <snippet>: Remove v2 dirrectory and package separatly.
(go-github-com-pborman-getopt-v2): New variable.
(go-ulid) [native-inputs] Remove go-github-com-pborman-getopt; add
go-github-com-pborman-getopt-v2.

* gnu/packages/calendar.scm (hebcal) [inputs]: Remove
go-github-com-pborman-getopt; add go-github-com-pborman-getopt-v2.

Change-Id: I62aaa277cfffdb11e39a77688778a26b4600dc56
This commit is contained in:
Sharlatan Hellseher 2024-12-22 20:02:45 +00:00
parent 4e422224c8
commit 7c8c15f505
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
2 changed files with 36 additions and 9 deletions

View file

@ -8343,6 +8343,38 @@ processes.")
(define-public go-github-com-pborman-getopt
(package
(name "go-github-com-pborman-getopt")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pborman/getopt")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1sa66n392hzqbahn47grbjyaasvpklnn4s1wkzs1kdwrfdd62kfa"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Submodules with their own go.mod files and packaged separately:
;;
;; - github.com/pborman/getopt/v2
(delete-file-recursively "v2")))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pborman/getopt"))
(home-page "https://github.com/pborman/getopt")
(synopsis "Getopt style option parsing for Go")
(description
"This package provides traditional getopt processing for implementing
programs that use traditional command lines.")
(license license:bsd-3)))
(define-public go-github-com-pborman-getopt-v2
(package
(inherit go-github-com-pborman-getopt)
(name "go-github-com-pborman-getopt-v2")
(version "2.1.0")
(source
(origin
@ -8356,13 +8388,8 @@ processes.")
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pborman/getopt"))
(home-page "https://github.com/pborman/getopt")
(synopsis "Getopt style option parsing for Go")
(description
"This package provides traditional getopt processing for implementing
programs that use traditional command lines.")
(license license:bsd-3)))
#:import-path "github.com/pborman/getopt/v2"
#:unpack-path "github.com/pborman/getopt"))))
(define-public go-github-com-pelletier-go-toml
(package
@ -11955,7 +11982,7 @@ tool."))))
#:import-path "github.com/oklog/ulid/v2/cmd/ulid"
#:unpack-path "github.com/oklog/ulid/v2"))
(native-inputs
(list go-github-com-pborman-getopt))
(list go-github-com-pborman-getopt-v2))
(description
(string-append (package-description go-github-com-oklog-ulid)
" This package provides an command line interface (CLI)