2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2018-07-09 08:23:48 +00:00
|
|
|
|
2021-06-23 03:08:17 +00:00
|
|
|
let version = "1.3.0";
|
2020-03-27 07:33:21 +00:00
|
|
|
in buildGoModule rec {
|
|
|
|
inherit version;
|
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
|
|
|
|
2021-06-23 03:08:17 +00:00
|
|
|
vendorSha256 = "sha256-I+UBa6gqkPRXNV72iyJcCBLYShZxMtHFHSK77mhDv+U=";
|
2019-10-06 19:31:23 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-10-06 19:31:23 +00:00
|
|
|
preBuild = ''
|
|
|
|
buildFlagsArray+=("-ldflags" "-X main.version=${version}")
|
|
|
|
'';
|
2018-07-09 08:23:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "drone";
|
|
|
|
repo = "drone-cli";
|
2020-03-27 07:33:21 +00:00
|
|
|
rev = revision;
|
2021-06-23 03:08:17 +00:00
|
|
|
sha256 = "sha256-j6drDMxvAVfQ1aCFooc9g9HhMRMlFZXGZPiuJZKBbY4=";
|
2018-07-09 08:23:48 +00:00
|
|
|
};
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2018-07-09 08:23:48 +00:00
|
|
|
maintainers = with maintainers; [ bricewge ];
|
|
|
|
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
|
|
|
}
|