1{ lib, fetchFromGitHub, buildGoModule }: 2 3buildGoModule rec { 4 version = "1.6.0"; 5 pname = "drone-cli"; 6 revision = "v${version}"; 7 8 vendorSha256 = "sha256-0vHOPuSn7eczlUeCTz+SOMuDdRQTzw/TnH1rt/ltWOQ="; 9 10 doCheck = false; 11 12 patches = [ ./0001-use-different-upstream-for-gomod.patch ]; 13 14 ldflags = [ 15 "-X main.version=${version}" 16 ]; 17 18 src = fetchFromGitHub { 19 owner = "harness"; 20 repo = "drone-cli"; 21 rev = revision; 22 sha256 = "sha256-TVOj1C5X3fTRZF29hId13LjkkwaAFntlozpmYVUfVJI="; 23 }; 24 25 meta = with lib; { 26 mainProgram = "drone"; 27 maintainers = with maintainers; [ techknowlogick ]; 28 license = licenses.asl20; 29 description = "Command line client for the Drone continuous integration server"; 30 }; 31}