diff options
author | Anatolii Prylutskyi <anpryl@gmail.com> | 2022-08-05 17:27:34 +0300 |
---|---|---|
committer | Anatolii Prylutskyi <anpryl@gmail.com> | 2022-08-15 21:06:49 +0300 |
commit | b6dad2afe6684c6db2b33d7a5b0191eff2a2a5a4 (patch) | |
tree | 82107f468e2cf0de9e6d3f942e719f76410a56e7 /pkgs/development/tools/moq | |
parent | 5ea5ce9de6c52a26a4d4b8e92668935b8f5ce952 (diff) | |
download | nixlib-b6dad2afe6684c6db2b33d7a5b0191eff2a2a5a4.tar nixlib-b6dad2afe6684c6db2b33d7a5b0191eff2a2a5a4.tar.gz nixlib-b6dad2afe6684c6db2b33d7a5b0191eff2a2a5a4.tar.bz2 nixlib-b6dad2afe6684c6db2b33d7a5b0191eff2a2a5a4.tar.lz nixlib-b6dad2afe6684c6db2b33d7a5b0191eff2a2a5a4.tar.xz nixlib-b6dad2afe6684c6db2b33d7a5b0191eff2a2a5a4.tar.zst nixlib-b6dad2afe6684c6db2b33d7a5b0191eff2a2a5a4.zip |
moq: init at 0.2.7
Diffstat (limited to 'pkgs/development/tools/moq')
-rw-r--r-- | pkgs/development/tools/moq/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/tools/moq/default.nix b/pkgs/development/tools/moq/default.nix new file mode 100644 index 000000000000..40f004d6e5bf --- /dev/null +++ b/pkgs/development/tools/moq/default.nix @@ -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 ]; + }; +} |