depot/third_party/nixpkgs/pkgs/development/tools/go-minimock/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
718 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-minimock";
version = "3.3.12";
src = fetchFromGitHub {
owner = "gojuno";
repo = "minimock";
rev = "v${version}";
hash = "sha256-9iokhXkwmISjg8pOy11bax0KEfro2lpGLI9fbz2tpiY=";
};
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";
};
}