Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 847 B view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5}: 6 7buildGoModule rec { 8 pname = "moq"; 9 version = "0.5.3"; 10 11 src = fetchFromGitHub { 12 owner = "matryer"; 13 repo = "moq"; 14 rev = "v${version}"; 15 sha256 = "sha256-Yk0lGu6wHF5OBFx/yZPJr3h3DVMvyBV8pi5eSxl7hpw="; 16 }; 17 18 vendorHash = "sha256-Mwx2Z2oVFepNr911zERuoM79NlpXu13pVpXPJox86BA="; 19 20 subPackages = [ "." ]; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 "-X main.Version=${version}" 26 ]; 27 28 meta = with lib; { 29 homepage = "https://github.com/matryer/moq"; 30 description = "Interface mocking tool for go generate"; 31 mainProgram = "moq"; 32 longDescription = '' 33 Moq is a tool that generates a struct from any interface. The struct can 34 be used in test code as a mock of the interface. 35 ''; 36 license = licenses.mit; 37 maintainers = with maintainers; [ anpryl ]; 38 }; 39}