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 {
|
2021-08-21 23:41:26 +01:00
|
|
|
version = "1.3.1";
|
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-08-21 23:41:26 +01:00
|
|
|
vendorSha256 = "sha256-IlQ83lhRiobjvXa4FvavwLAXe7Bi7oLXRAr+1kvIHhc=";
|
2019-10-06 20:31:23 +01:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-21 09:23:48 +01:00
|
|
|
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-08-21 23:41:26 +01:00
|
|
|
sha256 = "sha256-EUvwKQgQTX8wX9h/rMlCYuB0S/OhPo4Ynlz5QQOWJlU=";
|
2018-07-09 09:23:48 +01:00
|
|
|
};
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2021-09-08 10:44:28 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-07-09 09:23:48 +01:00
|
|
|
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
|
|
|
}
|