2020-12-26 04:20:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-minimock";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "3.3.6";
|
2020-12-26 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gojuno";
|
|
|
|
repo = "minimock";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-ru3+MJ1GbzVDi6niiz7SpL0qa9mE89uhcH5/PHbVugE=";
|
2020-12-26 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X main.version=${version}"
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
vendorHash = "sha256-eCM/EDdXZSa+pg35V6YiZ5gaC4rj8Wt8HhCgaMPoP+Y=";
|
2020-12-26 04:20:00 +00: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 ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "minimock";
|
2020-12-26 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|