diff options
author | Danny Milosavljevic <dannym@scratchpost.org> | 2020-02-10 16:46:10 +0100 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2020-02-10 16:59:48 +0100 |
commit | 90bce15998b0faf5afd60b1a3ee59e93547089e2 (patch) | |
tree | b2cfe7fb7c0c9d354e68cfef74899286e952d9af /gnu/packages/golang.scm | |
parent | 814091efe2e36d83f10b874afe3f6da56ff34e4b (diff) | |
download | patches-90bce15998b0faf5afd60b1a3ee59e93547089e2.tar patches-90bce15998b0faf5afd60b1a3ee59e93547089e2.tar.gz |
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.
Diffstat (limited to 'gnu/packages/golang.scm')
-rw-r--r-- | gnu/packages/golang.scm | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index dbe716d584..5d0c2480b6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3105,19 +3105,23 @@ common task.") (home-page "https://godoc.org/golang.org/x/sync/errgroup") (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 (package (name "go-gotest-tools-assert") (version "3.0.0") - (source (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 name version)) - (sha256 - (base32 - "18sg8ih4b4h7g065zsfn9s00wplifmjvn77sqnp0lsmz91h91r5c")))) + (source + (go-gotest-tools-source version + "0071rjxp4xzcr3vprkaj1hdk35a3v45bx8v0ipk16wwc5hx84i2i")) (build-system go-build-system) (arguments `(#:import-path "gotest.tools/assert" |