2020-12-26 04:20:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-minimock";
|
|
|
|
version = "3.0.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gojuno";
|
|
|
|
repo = "minimock";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0r0krbwvx5w1z0yv2qqi92irbsfhkvwvaigy350cvcz9gmcppj4h";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=-s -w -X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2020-12-26 04:20:00 +00:00
|
|
|
vendorSha256 = "1macwm6hybjinwnx62v146yxydcn5k5r587nxwkf4ffy76s2m3jc";
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|