2022-04-27 09:35:20 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mockgen";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "1.6.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang";
|
|
|
|
repo = "mock";
|
|
|
|
rev = "v${version}";
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-5Kp7oTmd8kqUN+rzm9cLqp9nb3jZdQyltGGQDiRSWcE=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
vendorSha256 = "sha256-5gkrn+OxbNN8J1lbgbxM8jACtKA7t07sbfJ7gVJWpJM=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
subPackages = [ "mockgen" ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
preCheck = ''
|
|
|
|
export GOROOT="$(go env GOROOT)"
|
|
|
|
'';
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "GoMock is a mocking framework for the Go programming language";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/golang/mock";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ bouk ];
|
|
|
|
};
|
|
|
|
}
|