2022-09-30 11:47:45 +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"}";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.24.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-03-30 09:31:56 +00:00
|
|
|
owner = "harness";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "drone";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-IiSsw0bZDAVuOrm7JBTT14Cf7I/koeS2Yw6vWYBG7kA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
vendorHash = "sha256-n4KbKkqAnHDIsXs8A/FE+rCkSKQKr5fv7npJ/X6t0mk=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
tags = lib.optionals (!enableUnfree) [ "oss" "nolimit" ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
description = "Continuous Integration platform built on container technology";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "drone-server";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://github.com/harness/drone";
|
2022-03-30 09:31:56 +00:00
|
|
|
maintainers = with maintainers; [ elohmeier vdemeester techknowlogick ];
|
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
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|