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

24 lines
629 B
Nix
Raw Normal View History

2020-06-22 14:50:31 +02:00
{ buildGoModule, lib, fetchFromGitHub }:
buildGoModule rec {
pname = "mockgen";
2021-08-14 18:14:21 +02:00
version = "1.6.0";
2020-06-22 14:50:31 +02:00
src = fetchFromGitHub {
owner = "golang";
repo = "mock";
rev = "v${version}";
2021-08-14 18:14:21 +02:00
sha256 = "sha256-5Kp7oTmd8kqUN+rzm9cLqp9nb3jZdQyltGGQDiRSWcE=";
2020-06-22 14:50:31 +02:00
};
2021-08-14 18:14:21 +02:00
vendorSha256 = "sha256-5gkrn+OxbNN8J1lbgbxM8jACtKA7t07sbfJ7gVJWpJM=";
doCheck = false;
2020-06-22 14:50:31 +02:00
subPackages = [ "mockgen" ];
meta = with lib; {
description = "GoMock is a mocking framework for the Go programming language";
2020-06-22 14:50:31 +02:00
homepage = "https://github.com/golang/mock";
license = licenses.asl20;
maintainers = with maintainers; [ bouk ];
};
}