841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
28 lines
798 B
Nix
28 lines
798 B
Nix
{ lib, fetchFromGitHub, buildGoModule
|
|
, enableUnfree ? true }:
|
|
|
|
buildGoModule rec {
|
|
pname = "drone.io${lib.optionalString (!enableUnfree) "-oss"}";
|
|
version = "2.0.0";
|
|
|
|
vendorSha256 = "sha256-cnbZSnHU+ORm7/dV+U9NfM18Zrzi24vf7qITPJsusU8=";
|
|
|
|
doCheck = false;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "drone";
|
|
repo = "drone";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-BxwCJf3uY34rqegZJ6H/zb63orELhq41trOgzGXQe80=";
|
|
};
|
|
|
|
preBuild = ''
|
|
buildFlagsArray+=( "-tags" "${lib.optionalString (!enableUnfree) "oss nolimit"}" )
|
|
'';
|
|
|
|
meta = with lib; {
|
|
maintainers = with maintainers; [ elohmeier vdemeester ];
|
|
license = with licenses; if enableUnfree then unfreeRedistributable else asl20;
|
|
description = "Continuous Integration platform built on container technology";
|
|
};
|
|
}
|