Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, buildGoModule 4}: 5 6buildGoModule rec { 7 version = "1.7.0"; 8 pname = "drone-cli"; 9 revision = "v${version}"; 10 11 src = fetchFromGitHub { 12 owner = "harness"; 13 repo = "drone-cli"; 14 rev = revision; 15 hash = "sha256-PZ0M79duSctPepD5O+NdJZKhkyR21g/4P6loJtoWZiU="; 16 }; 17 18 vendorSha256 = "sha256-JC7OR4ySDsVWmrBBTjpwZrkJlM8RJehbsvXW/VtA4VA="; 19 20 # patch taken from https://patch-diff.githubusercontent.com/raw/harness/drone-cli/pull/179.patch 21 # but with go.mod changes removed due to conflict 22 patches = [ ./0001-use-builtin-go-syscerts.patch ]; 23 24 ldflags = [ 25 "-X main.version=${version}" 26 ]; 27 28 doCheck = false; 29 30 meta = with lib; { 31 mainProgram = "drone"; 32 maintainers = with maintainers; [ techknowlogick ]; 33 license = licenses.asl20; 34 description = "Command line client for the Drone continuous integration server"; 35 }; 36}