mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
29 lines
670 B
Nix
29 lines
670 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "mockgen";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "golang";
|
|
repo = "mock";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-5Kp7oTmd8kqUN+rzm9cLqp9nb3jZdQyltGGQDiRSWcE=";
|
|
};
|
|
|
|
vendorHash = "sha256-5gkrn+OxbNN8J1lbgbxM8jACtKA7t07sbfJ7gVJWpJM=";
|
|
|
|
subPackages = [ "mockgen" ];
|
|
|
|
preCheck = ''
|
|
export GOROOT="$(go env GOROOT)"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "GoMock is a mocking framework for the Go programming language";
|
|
homepage = "https://github.com/golang/mock";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ bouk ];
|
|
};
|
|
}
|