2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2018-07-09 09:23:48 +01:00
|
|
|
|
2021-07-17 18:56:23 +01:00
|
|
|
buildGoModule rec {
|
|
|
|
version = "1.3.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "drone-cli";
|
2020-03-27 07:33:21 +00:00
|
|
|
revision = "v${version}";
|
2018-07-09 09:23:48 +01:00
|
|
|
|
2021-06-23 04:08:17 +01:00
|
|
|
vendorSha256 = "sha256-I+UBa6gqkPRXNV72iyJcCBLYShZxMtHFHSK77mhDv+U=";
|
2019-10-06 20:31:23 +01:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-10-06 20:31:23 +01:00
|
|
|
preBuild = ''
|
|
|
|
buildFlagsArray+=("-ldflags" "-X main.version=${version}")
|
|
|
|
'';
|
2018-07-09 09:23:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "drone";
|
|
|
|
repo = "drone-cli";
|
2020-03-27 07:33:21 +00:00
|
|
|
rev = revision;
|
2021-06-23 04:08:17 +01:00
|
|
|
sha256 = "sha256-j6drDMxvAVfQ1aCFooc9g9HhMRMlFZXGZPiuJZKBbY4=";
|
2018-07-09 09:23:48 +01:00
|
|
|
};
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2018-07-09 09:23:48 +01:00
|
|
|
maintainers = with maintainers; [ bricewge ];
|
|
|
|
license = licenses.asl20;
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "Command line client for the Drone continuous integration server";
|
2018-07-09 09:23:48 +01:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|