status-desktop/nix/pkgs/mockgen/default.nix

35 lines
870 B
Nix
Raw Permalink Normal View History

{ buildGo121Module, fetchFromGitHub, lib }:
buildGo121Module rec {
pname = "mockgen";
version = "0.4.0";
src = fetchFromGitHub {
owner = "uber-go";
repo = "mock";
rev = "v${version}";
sha256 = "sha256-3nt70xrZisK5vgQa+STZPiY4F9ITKw8PbBWcKoBn4Vc=";
};
vendorHash = "sha256-mcNVud2jzvlPPQEaar/eYZkP71V2Civz+R5v10+tewA=";
CGO_ENABLED = 0;
subPackages = [ "mockgen" ];
ldflags = [
"-X=main.version=${version}"
"-X=main.date=1970-01-01T00:00:00Z"
"-X=main.commit=unknown"
];
meta = with lib; {
description = "GoMock is a mocking framework for the Go programming language";
homepage = "https://github.com/uber-go/mock";
changelog = "https://github.com/uber-go/mock/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ bouk ];
mainProgram = "mockgen";
};
}