nixpkgs/pkgs/development/tools/go-minimock/default.nix

31 lines
693 B
Nix
Raw Normal View History

2020-12-24 03:11:52 +03:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-minimock";
2021-06-23 07:49:14 +03:00
version = "3.0.9";
2020-12-24 03:11:52 +03:00
src = fetchFromGitHub {
owner = "gojuno";
repo = "minimock";
rev = "v${version}";
2021-06-23 07:49:14 +03:00
sha256 = "sha256-l+ngvmTb9yVgQYT+OeaVd0zz/xNZeXWrjMpVkMpbQIw=";
2020-12-24 03:11:52 +03:00
};
2021-08-26 09:45:51 +03:00
ldflags = [
"-s" "-w" "-X main.version=${version}"
];
2021-06-23 07:49:14 +03:00
vendorSha256 = "sha256-hn222ifKRYbASAHBJyMTCDwhykf2Jg9IqIUlK/GabJA=";
2020-12-24 03:11:52 +03:00
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 ];
};
}