159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
31 lines
717 B
Nix
31 lines
717 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-minimock";
|
|
version = "3.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gojuno";
|
|
repo = "minimock";
|
|
rev = "v${version}";
|
|
hash = "sha256-IfowEauUoMybElxThsAZxtdZu3LCqwgpJM5wLQI/yAc=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s" "-w" "-X main.version=${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-ObyIiHidGioSelX2qplFMkC0KX44h0rT6ePa3QKpNfU=";
|
|
|
|
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";
|
|
};
|
|
}
|