mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
32 lines
721 B
Nix
32 lines
721 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-minimock";
|
|
version = "3.3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gojuno";
|
|
repo = "minimock";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-jwQT3JmVFS7e6wr+hCFLlA1YhiKdTrMai0RfClJafJQ=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s" "-w" "-X main.version=${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-vcYhLMs/skZlhzdeEWUcv28VkRvraavziBwbwrgLZio=";
|
|
|
|
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";
|
|
};
|
|
}
|