2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
buildGoModule rec {
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "drone-cli";
|
|
|
|
revision = "v${version}";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "harness";
|
|
|
|
repo = "drone-cli";
|
|
|
|
rev = revision;
|
|
|
|
hash = "sha256-PZ0M79duSctPepD5O+NdJZKhkyR21g/4P6loJtoWZiU=";
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorSha256 = "sha256-JC7OR4ySDsVWmrBBTjpwZrkJlM8RJehbsvXW/VtA4VA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# 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 ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-10-17 09:34:42 +00:00
|
|
|
mainProgram = "drone";
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ techknowlogick ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Command line client for the Drone continuous integration server";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|