diff options
author | Katherine Cox-Buday <cox.katherine.e@gmail.com> | 2023-01-17 18:45:02 -0700 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-02-07 00:05:54 +0100 |
commit | 347ac7fbdec6147744efea4d35c2758059a0fa83 (patch) | |
tree | 9e0c52f464a280c7ab3ad459e05e30c2046b1f14 /gnu/packages/golang.scm | |
parent | a62ed0b3bf7a0ce87da8545627c09a0ca5d5ad8e (diff) |
gnu: Add unparam.
* gnu/packages/golang.scm (unparam): New variable.
Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu/packages/golang.scm')
-rw-r--r-- | gnu/packages/golang.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 30ca12cb5f..17ba262804 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -9848,6 +9848,31 @@ atomic access.") "@code{multierr} allows combining one or more Go errors together.") (license license:expat))) +(define-public unparam + (package + (name "unparam") + (version "0.0.0-20221223090309-7455f1af531d") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mvdan/unparam") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0wynf0b32azxljncw5fh9bwkxpdflvf9q1z16wyj432566yjh12c")))) + (build-system go-build-system) + (arguments + `(#:import-path "mvdan.cc/unparam" + #:go ,go-1.19)) + (inputs (list go-golang-org-x-sys go-golang-org-x-mod + go-github-com-pkg-diff go-golang-org-x-tools + go-github-com-rogpeppe-go-internal)) + (home-page "https://mvdan.cc/unparam/") + (synopsis "Find unused parameters in Go") + (description "Reports unused function parameters and results in Go code.") + (license license:bsd-3))) + (define-public xurls (package (name "xurls") |