nixpkgs/pkgs/by-name/mo/moq/package.nix

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

36 lines
840 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
2022-08-05 15:27:34 +01:00
buildGoModule rec {
pname = "moq";
2024-10-29 12:00:14 +00:00
version = "0.5.0";
2022-08-05 15:27:34 +01:00
src = fetchFromGitHub {
owner = "matryer";
repo = "moq";
rev = "v${version}";
2024-10-29 12:00:14 +00:00
sha256 = "sha256-fIvh+IvkyU76RzJvThIFrsBOg/w+FtNjgthOy04siOc=";
2022-08-05 15:27:34 +01:00
};
2024-08-23 14:15:12 +01:00
vendorHash = "sha256-Kp0mRLmOlV3UpYSQJoc54tYU78sg+RZ5qy/1ime7j7w=";
2022-08-05 15:27:34 +01:00
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
];
meta = with lib; {
homepage = "https://github.com/matryer/moq";
description = "Interface mocking tool for go generate";
mainProgram = "moq";
2022-08-05 15:27:34 +01:00
longDescription = ''
Moq is a tool that generates a struct from any interface. The struct can
be used in test code as a mock of the interface.
'';
license = licenses.mit;
maintainers = with maintainers; [ anpryl ];
};
}