nixpkgs/pkgs/development/tools/go-minimock/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
721 B
Nix
Raw Normal View History

2020-12-24 00:11:52 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-minimock";
2023-03-23 12:34:06 +00:00
version = "3.1.2";
2020-12-24 00:11:52 +00:00
src = fetchFromGitHub {
owner = "gojuno";
repo = "minimock";
rev = "v${version}";
2023-03-23 12:34:06 +00:00
sha256 = "sha256-r1P9uLIxdDDI+slWO/K3nKf5gmsCEVfephrR+ZCXhBE=";
2020-12-24 00:11:52 +00:00
};
2021-08-26 06:45:51 +00:00
ldflags = [
"-s" "-w" "-X main.version=${version}"
];
2023-03-23 12:34:06 +00:00
vendorHash = "sha256-fiSU2NB9rWIPQLdnui5CB5VcadTVUg2JaO3ma7DAYqo=";
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 ];
mainProgram = "minimock";
2020-12-24 00:11:52 +00:00
};
}