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-10-21 18:38:19 +00:00
|
|
|
version = "1.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "drone-cli";
|
|
|
|
revision = "v${version}";
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
vendorSha256 = "sha256-0vHOPuSn7eczlUeCTz+SOMuDdRQTzw/TnH1rt/ltWOQ=";
|
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-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-TVOj1C5X3fTRZF29hId13LjkkwaAFntlozpmYVUfVJI=";
|
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
|
|
|
}
|