mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-mvdan-cc-unparam: Swap inheritance.
Simplify both packages by swapping inheritance where final CLI command package inherits from Go library. * gnu/packages/golang.scm (go-mvdan-cc-unparam): Override unparam. Swap inputs with propagated-inputs to cover future library use. (unparam): Inherit from go-mvdan-cc-unparam Change-Id: Id21d10bc10462b28475f9064f34141f12c5656bb
This commit is contained in:
parent
c0c985a53b
commit
7c3cd33092
1 changed files with 10 additions and 14 deletions
|
@ -3148,9 +3148,9 @@ That is, @code{gofumpt} is happy with a subset of the formats that
|
||||||
(native-inputs '())
|
(native-inputs '())
|
||||||
(inputs '())))
|
(inputs '())))
|
||||||
|
|
||||||
(define-public unparam
|
(define-public go-mvdan-cc-unparam
|
||||||
(package
|
(package
|
||||||
(name "unparam")
|
(name "go-mvdan-cc-unparam")
|
||||||
(version "0.0.0-20240528143540-8a5130ca722f")
|
(version "0.0.0-20240528143540-8a5130ca722f")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -3164,6 +3164,7 @@ That is, @code{gofumpt} is happy with a subset of the formats that
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:skip-build? #t
|
||||||
#:import-path "mvdan.cc/unparam"
|
#:import-path "mvdan.cc/unparam"
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
|
@ -3175,26 +3176,21 @@ That is, @code{gofumpt} is happy with a subset of the formats that
|
||||||
"testdata/script/stubs.txtar"
|
"testdata/script/stubs.txtar"
|
||||||
"testdata/script/impl.txtar"
|
"testdata/script/impl.txtar"
|
||||||
"testdata/script/paramuses.txtar"))))))))
|
"testdata/script/paramuses.txtar"))))))))
|
||||||
(inputs (list go-github-com-pkg-diff go-golang-org-x-tools
|
(propagated-inputs (list go-github-com-pkg-diff go-golang-org-x-tools
|
||||||
go-github-com-rogpeppe-go-internal))
|
go-github-com-rogpeppe-go-internal))
|
||||||
(home-page "https://mvdan.cc/unparam/")
|
(home-page "https://mvdan.cc/unparam/")
|
||||||
(synopsis "Find unused parameters in Go")
|
(synopsis "Find unused parameters in Go")
|
||||||
(description "Reports unused function parameters and results in Go code.")
|
(description "Reports unused function parameters and results in Go code.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public go-mvdan-cc-unparam
|
(define-public unparam
|
||||||
(package
|
(package
|
||||||
(inherit unparam)
|
(inherit go-mvdan-cc-unparam)
|
||||||
(name "go-mvdan-cc-unparam")
|
(name "unparam")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:import-path "github.com/mvdan/unparam"
|
(list #:tests? #f
|
||||||
#:tests? #f
|
#:install-source? #f
|
||||||
#:install-source? #t
|
#:import-path "mvdan.cc/unparam"))))
|
||||||
#:phases (modify-phases %standard-phases
|
|
||||||
(delete 'build))))
|
|
||||||
(propagated-inputs (package-inputs unparam))
|
|
||||||
(native-inputs '())
|
|
||||||
(inputs '())))
|
|
||||||
|
|
||||||
(define-public go-github-com-valyala-bytebufferpool
|
(define-public go-github-com-valyala-bytebufferpool
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue