83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
31 lines
718 B
Nix
31 lines
718 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-minimock";
|
|
version = "3.3.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gojuno";
|
|
repo = "minimock";
|
|
rev = "v${version}";
|
|
hash = "sha256-YLGZJMBe5wKI9RccJ1ps48A3ZiPWMrzjZH4Fpy8K9yM=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s" "-w" "-X main.version=${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-O1Bp+zuSq3/UULpej4rXxeHcDiNAhECqj9Yh9aGeA0E=";
|
|
|
|
doCheck = true;
|
|
|
|
subPackages = [ "cmd/minimock" "." ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/gojuno/minimock";
|
|
description = "Golang mock generator from interfaces";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ svrana ];
|
|
mainProgram = "minimock";
|
|
};
|
|
}
|