23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
31 lines
721 B
Nix
31 lines
721 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-minimock";
|
|
version = "3.3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gojuno";
|
|
repo = "minimock";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ru3+MJ1GbzVDi6niiz7SpL0qa9mE89uhcH5/PHbVugE=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s" "-w" "-X main.version=${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-eCM/EDdXZSa+pg35V6YiZ5gaC4rj8Wt8HhCgaMPoP+Y=";
|
|
|
|
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 ];
|
|
mainProgram = "minimock";
|
|
};
|
|
}
|