Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "protolock"; 5 version = "0.16.0"; 6 7 src = fetchFromGitHub { 8 owner = "nilslice"; 9 repo = "protolock"; 10 rev = "v${version}"; 11 sha256 = "sha256-vWwRZVArmlTIGwD4zV3dEHN2kkoeCZuNIvjCBVAviPo="; 12 }; 13 14 vendorSha256 = "sha256-pYtP+Tkh2TcGsbk7zQNaoYLEQrqGOL0gkMG5dUkfpt4="; 15 16 postInstall = '' 17 rm $out/bin/plugin* 18 ''; 19 20 meta = with lib; { 21 description = "Protocol Buffer companion tool. Track your .proto files and prevent changes to messages and services which impact API compatibility. https://protolock.dev"; 22 homepage = "https://github.com/nilslice/protolock"; 23 license = licenses.bsd3; 24 maintainers = with maintainers; [ groodt ]; 25 }; 26}