2020-12-26 04:20:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-minimock";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "3.3.12";
|
2020-12-26 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gojuno";
|
|
|
|
repo = "minimock";
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-9iokhXkwmISjg8pOy11bax0KEfro2lpGLI9fbz2tpiY=";
|
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-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-O1Bp+zuSq3/UULpej4rXxeHcDiNAhECqj9Yh9aGeA0E=";
|
2020-12-26 04:20:00 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
subPackages = [ "cmd/minimock" "." ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/gojuno/minimock";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Golang mock generator from interfaces";
|
2020-12-26 04:20:00 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|