depot/third_party/nixpkgs/pkgs/development/tools/go-minimock/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

30 lines
706 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=";
};
buildFlagsArray = [
"-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 ];
};
}