2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
buildGoModule rec {
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "1.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "drone-cli";
|
|
|
|
revision = "v${version}";
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
vendorSha256 = "0hh079qvxs4bcf0yy42y6sb303wxxam5h2mz56irdl0q2vqkk0f0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
patches = [ ./0001-use-different-upstream-for-gomod.patch ];
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-02-20 05:27:41 +00:00
|
|
|
owner = "harness";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "drone-cli";
|
|
|
|
rev = revision;
|
2022-01-19 23:45:15 +00:00
|
|
|
sha256 = "sha256-TFIGKTVrAMSOFEmu3afdDKBgyEwF2KIv3rt1fS6rCxw=";
|
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
|
|
|
}
|