me
/
guix
Archived
1
0
Fork 0

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.
master
Danny Milosavljevic 2020-02-10 16:46:10 +01:00
parent 814091efe2
commit 90bce15998
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 13 additions and 9 deletions

View File

@ -3105,19 +3105,23 @@ common task.")
(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 (go-gotest-tools-source version sha256-base32-hash)
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gotestyourself/gotest.tools.git")
(commit (string-append "v" version))))
(file-name (git-file-name "go-gotest-tools" version))
(sha256
(base32 sha256-base32-hash))))
(define-public go-gotest-tools-assert (define-public go-gotest-tools-assert
(package (package
(name "go-gotest-tools-assert") (name "go-gotest-tools-assert")
(version "3.0.0") (version "3.0.0")
(source (origin (source
(method git-fetch) (go-gotest-tools-source version
(uri (git-reference "0071rjxp4xzcr3vprkaj1hdk35a3v45bx8v0ipk16wwc5hx84i2i"))
(url "https://github.com/gotestyourself/gotest.tools.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"18sg8ih4b4h7g065zsfn9s00wplifmjvn77sqnp0lsmz91h91r5c"))))
(build-system go-build-system) (build-system go-build-system)
(arguments (arguments
`(#:import-path "gotest.tools/assert" `(#:import-path "gotest.tools/assert"