2021-04-05 15:23:46 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule
|
|
|
|
, enableUnfree ? true }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
2021-04-05 15:23:46 +00:00
|
|
|
pname = "drone.io${lib.optionalString (!enableUnfree) "-oss"}";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "1.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
vendorSha256 = "sha256-cKHX/GnvGELQBfoo0/1UmDQ4Z66GGnnHG7+1CzjinL0=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "drone";
|
|
|
|
repo = "drone";
|
|
|
|
rev = "v${version}";
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "sha256-12Jac+mXWdUX8gWvmpdO9ROv7Bi0YzvyqnNDVNJOr34=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
preBuild = ''
|
|
|
|
buildFlagsArray+=( "-tags" "${lib.optionalString (!enableUnfree) "oss nolimit"}" )
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ elohmeier vdemeester ];
|
2021-04-05 15:23:46 +00:00
|
|
|
license = with licenses; if enableUnfree then unfreeRedistributable else asl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Continuous Integration platform built on container technology";
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|