2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2018-07-09 08:23:48 +00:00
|
|
|
|
2021-07-17 17:56:23 +00:00
|
|
|
buildGoModule rec {
|
2022-01-11 06:34:26 +00:00
|
|
|
version = "1.5.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "drone-cli";
|
2020-03-27 07:33:21 +00:00
|
|
|
revision = "v${version}";
|
2018-07-09 08:23:48 +00:00
|
|
|
|
2022-02-11 20:27:37 +00:00
|
|
|
vendorSha256 = "0hh079qvxs4bcf0yy42y6sb303wxxam5h2mz56irdl0q2vqkk0f0";
|
2019-10-06 19:31:23 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-02-11 20:27:37 +00:00
|
|
|
patches = [ ./0001-use-different-upstream-for-gomod.patch ];
|
|
|
|
|
2021-08-21 08:23:48 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
2018-07-09 08:23:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-02-11 20:27:37 +00:00
|
|
|
owner = "harness";
|
2018-07-09 08:23:48 +00:00
|
|
|
repo = "drone-cli";
|
2020-03-27 07:33:21 +00:00
|
|
|
rev = revision;
|
2022-01-11 06:34:26 +00:00
|
|
|
sha256 = "sha256-TFIGKTVrAMSOFEmu3afdDKBgyEwF2KIv3rt1fS6rCxw=";
|
2018-07-09 08:23:48 +00:00
|
|
|
};
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2021-10-18 15:59:41 +00:00
|
|
|
mainProgram = "drone";
|
2022-02-11 20:27:37 +00:00
|
|
|
maintainers = with maintainers; [ techknowlogick ];
|
2018-07-09 08:23:48 +00:00
|
|
|
license = licenses.asl20;
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Command line client for the Drone continuous integration server";
|
2018-07-09 08:23:48 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|