mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
35 lines
825 B
Nix
35 lines
825 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "moq";
|
|
version = "0.2.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "matryer";
|
|
repo = "moq";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-me/KD8bgzA+VU7WrfKlk8HZTInJqhijLAVTiZcJRzms=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-XTe52pytjZYJALBOcnytA8z/d3UHSKcU1lJmJm8Iawo=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.Version=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/matryer/moq";
|
|
description = "Interface mocking tool for go generate";
|
|
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 ];
|
|
};
|
|
}
|