mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 21:49:34 -05:00
gnu: go-gotest-tools: Factor out go-gotest-tools-source.
* gnu/packages/golang.scm (go-gotest-tools-source): New procedure. (go-gotest-tools-assert)[source]: Use it.
This commit is contained in:
parent
814091efe2
commit
90bce15998
1 changed files with 13 additions and 9 deletions
|
@ -3105,19 +3105,23 @@ (define-public go-golang.org-x-sync-errgroup
|
||||||
(home-page "https://godoc.org/golang.org/x/sync/errgroup")
|
(home-page "https://godoc.org/golang.org/x/sync/errgroup")
|
||||||
(license license:bsd-3))))
|
(license license:bsd-3))))
|
||||||
|
|
||||||
(define-public go-gotest-tools-assert
|
(define (go-gotest-tools-source version sha256-base32-hash)
|
||||||
(package
|
(origin
|
||||||
(name "go-gotest-tools-assert")
|
|
||||||
(version "3.0.0")
|
|
||||||
(source (origin
|
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/gotestyourself/gotest.tools.git")
|
(url "https://github.com/gotestyourself/gotest.tools.git")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name "go-gotest-tools" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 sha256-base32-hash))))
|
||||||
"18sg8ih4b4h7g065zsfn9s00wplifmjvn77sqnp0lsmz91h91r5c"))))
|
|
||||||
|
(define-public go-gotest-tools-assert
|
||||||
|
(package
|
||||||
|
(name "go-gotest-tools-assert")
|
||||||
|
(version "3.0.0")
|
||||||
|
(source
|
||||||
|
(go-gotest-tools-source version
|
||||||
|
"0071rjxp4xzcr3vprkaj1hdk35a3v45bx8v0ipk16wwc5hx84i2i"))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:import-path "gotest.tools/assert"
|
`(#:import-path "gotest.tools/assert"
|
||||||
|
|
Loading…
Reference in a new issue