1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5 enableUnfree ? true,
6}:
7
8buildGoModule rec {
9 pname = "drone.io${lib.optionalString (!enableUnfree) "-oss"}";
10 version = "2.26.0";
11
12 src = fetchFromGitHub {
13 owner = "harness";
14 repo = "drone";
15 rev = "v${version}";
16 sha256 = "sha256-rTMu3wd/drxALAZB0O5bAJuWdYsHSwwOD4nbAFIhXbg=";
17 };
18
19 vendorHash = "sha256-9jzhoFN7aAUgPxENPuGYR41gXLzSv1VtnTPB38heVlI=";
20
21 tags = lib.optionals (!enableUnfree) [
22 "oss"
23 "nolimit"
24 ];
25
26 doCheck = false;
27
28 meta = with lib; {
29 description = "Continuous Integration platform built on container technology";
30 mainProgram = "drone-server";
31 homepage = "https://github.com/harness/drone";
32 maintainers = with maintainers; [
33 vdemeester
34 techknowlogick
35 ];
36 license = with licenses; if enableUnfree then unfreeRedistributable else asl20;
37 };
38}