nixpkgs/pkgs/development/tools/mockgen/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
670 B
Nix
Raw Normal View History

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
};
vendorHash = "sha256-5gkrn+OxbNN8J1lbgbxM8jACtKA7t07sbfJ7gVJWpJM=";
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; {
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 ];
};
}