1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5}:
6
7buildGoModule rec {
8 version = "1.9.0";
9 pname = "drone-cli";
10 revision = "v${version}";
11
12 src = fetchFromGitHub {
13 owner = "harness";
14 repo = "drone-cli";
15 rev = revision;
16 hash = "sha256-XE0myh+PAl8JhoUhEdjdCe52vQo3NuA8/v/x+v5zHK4=";
17 };
18
19 vendorHash = "sha256-22sefx/2iLvVzN+6wJ7kbDFAv10PQNmWbia+HFzmaW8=";
20
21 # patch taken from https://patch-diff.githubusercontent.com/raw/harness/drone-cli/pull/179.patch
22 # but with go.mod changes removed due to conflict
23 patches = [ ./0001-use-builtin-go-syscerts.patch ];
24
25 ldflags = [
26 "-X main.version=${version}"
27 ];
28
29 doCheck = false;
30
31 meta = with lib; {
32 mainProgram = "drone";
33 maintainers = with maintainers; [ techknowlogick ];
34 license = licenses.asl20;
35 description = "Command line client for the Drone continuous integration server";
36 };
37}