2022-04-25 20:56:49 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
2020-06-22 12:50:31 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mockgen";
|
2021-08-14 16:14:21 +00:00
|
|
|
version = "1.6.0";
|
2022-04-25 20:56:49 +00:00
|
|
|
|
2020-06-22 12:50:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang";
|
|
|
|
repo = "mock";
|
|
|
|
rev = "v${version}";
|
2021-08-14 16:14:21 +00:00
|
|
|
sha256 = "sha256-5Kp7oTmd8kqUN+rzm9cLqp9nb3jZdQyltGGQDiRSWcE=";
|
2020-06-22 12:50:31 +00:00
|
|
|
};
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-5gkrn+OxbNN8J1lbgbxM8jACtKA7t07sbfJ7gVJWpJM=";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2020-06-22 12:50:31 +00:00
|
|
|
subPackages = [ "mockgen" ];
|
|
|
|
|
2022-04-25 20:56:49 +00:00
|
|
|
preCheck = ''
|
|
|
|
export GOROOT="$(go env GOROOT)"
|
|
|
|
'';
|
|
|
|
|
2020-06-22 12:50:31 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "GoMock is a mocking framework for the Go programming language";
|
2020-06-22 12:50:31 +00:00
|
|
|
homepage = "https://github.com/golang/mock";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ bouk ];
|
|
|
|
};
|
|
|
|
}
|