moq: init at 0.2.7

This commit is contained in:
Anatolii Prylutskyi 2022-08-05 17:27:34 +03:00
parent 5ea5ce9de6
commit b6dad2afe6
No known key found for this signature in database
GPG key ID: 160F039506A66437
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ 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 ];
};
}

View file

@ -24221,6 +24221,8 @@ with pkgs;
impl = callPackage ../development/tools/impl { };
moq = callPackage ../development/tools/moq { };
quicktemplate = callPackage ../development/tools/quicktemplate { };
linux_logo = callPackage ../tools/misc/linux-logo { };