depot/third_party/nixpkgs/pkgs/development/tools/go-minimock/default.nix
Default email 58849dfc4f Project import generated by Copybara.
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
2021-08-27 16:25:00 +02:00

30 lines
693 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-minimock";
version = "3.0.9";
src = fetchFromGitHub {
owner = "gojuno";
repo = "minimock";
rev = "v${version}";
sha256 = "sha256-l+ngvmTb9yVgQYT+OeaVd0zz/xNZeXWrjMpVkMpbQIw=";
};
ldflags = [
"-s" "-w" "-X main.version=${version}"
];
vendorSha256 = "sha256-hn222ifKRYbASAHBJyMTCDwhykf2Jg9IqIUlK/GabJA=";
doCheck = true;
subPackages = [ "cmd/minimock" "." ];
meta = with lib; {
homepage = "https://github.com/gojuno/minimock";
description = "A golang mock generator from interfaces";
license = licenses.mit;
maintainers = with maintainers; [ svrana ];
};
}