2020-12-24 00:11:52 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-minimock";
|
2024-04-21 00:56:43 +00:00
|
|
|
version = "3.3.7";
|
2020-12-24 00:11:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gojuno";
|
|
|
|
repo = "minimock";
|
|
|
|
rev = "v${version}";
|
2024-04-21 00:56:43 +00:00
|
|
|
sha256 = "sha256-jwQT3JmVFS7e6wr+hCFLlA1YhiKdTrMai0RfClJafJQ=";
|
2020-12-24 00:11:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X main.version=${version}"
|
2021-01-22 01:23:25 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 00:56:43 +00:00
|
|
|
vendorHash = "sha256-vcYhLMs/skZlhzdeEWUcv28VkRvraavziBwbwrgLZio=";
|
2020-12-24 00:11:52 +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-01 19:34:55 +00:00
|
|
|
mainProgram = "minimock";
|
2020-12-24 00:11:52 +00:00
|
|
|
};
|
|
|
|
}
|