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