1{ lib, fetchFromGitHub, buildGoModule
2, enableUnfree ? true }:
3
4buildGoModule rec {
5 pname = "drone.io${lib.optionalString (!enableUnfree) "-oss"}";
6 version = "2.0.3";
7
8 vendorSha256 = "sha256-3qTH/p0l6Ke1F9SUcvK2diqZooOMnlXYO1PHLdJJ8PM=";
9
10 doCheck = false;
11
12 src = fetchFromGitHub {
13 owner = "drone";
14 repo = "drone";
15 rev = "v${version}";
16 sha256 = "sha256-MKV5kor+Wm9cuIFFcjSNyCgVKtY+/B9sgBOXMMRvMPI=";
17 };
18
19 tags = lib.optionals (!enableUnfree) [ "oss" "nolimit" ];
20
21 meta = with lib; {
22 maintainers = with maintainers; [ elohmeier vdemeester ];
23 license = with licenses; if enableUnfree then unfreeRedistributable else asl20;
24 description = "Continuous Integration platform built on container technology";
25 };
26}