@@ -4162,3 +4162,30 @@ quoting, commenting, and escaping.")
(synopsis "A golang library to get the login shell of the current user")
(description "A golang library to get the login shell of the current user.")
(license license:expat))))
+
+(define-public go-git-sr-ht-sircmpwn-getopt
+ (let ((commit "daaf1274538b02b41238d1e6c219186c76af3b8c")
+ (url "https://git.sr.ht/~sircmpwn/getopt"))
+ (package
+ (name "go-git-sr-ht-sircmpwn-getopt")
+ (version (git-version "0.0.0" "0" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url url)
+ (commit commit)))
+ (sha256
+ (base32
+ "0qf9kmzs3h4vzcbc1ha0z68ivckzvl7jq9jwb8rbbaq0d1a6baq7"))
+ (file-name (git-file-name name version))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "git.sr.ht/~sircmpwn/getopt"))
+ (native-inputs
+ `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
+ (home-page url)
+ (synopsis "A POSIX-compatible getopt implementation for Go")
+ (description "A POSIX-compatible getopt implementation for Go, because
+ POSIX getopt is The Correct Way to interpret arguments to command line utilities.")
+ (license license:expat))))