2022-09-21 13:56:47 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
, enableUnfree ? true
|
|
|
|
}:
|
2016-08-13 04:58:05 +00:00
|
|
|
|
2019-09-07 15:55:45 +00:00
|
|
|
buildGoModule rec {
|
2021-03-30 15:16:22 +00:00
|
|
|
pname = "drone.io${lib.optionalString (!enableUnfree) "-oss"}";
|
2024-01-02 18:00:03 +00:00
|
|
|
version = "2.22.0";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2016-08-13 04:58:05 +00:00
|
|
|
src = fetchFromGitHub {
|
2022-03-07 02:10:17 +00:00
|
|
|
owner = "harness";
|
2016-08-13 04:58:05 +00:00
|
|
|
repo = "drone";
|
2019-09-07 15:55:45 +00:00
|
|
|
rev = "v${version}";
|
2024-01-02 18:00:03 +00:00
|
|
|
sha256 = "sha256-haxxILbM3REdSK4h4LN+HhRvl3VK9Ozf2NfnLTL5T3A=";
|
2016-08-13 04:58:05 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 18:00:03 +00:00
|
|
|
vendorHash = "sha256-n4KbKkqAnHDIsXs8A/FE+rCkSKQKr5fv7npJ/X6t0mk=";
|
2022-09-21 13:56:47 +00:00
|
|
|
|
2021-08-08 00:11:16 +00:00
|
|
|
tags = lib.optionals (!enableUnfree) [ "oss" "nolimit" ];
|
2021-03-30 15:16:22 +00:00
|
|
|
|
2022-09-21 13:56:47 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2023-01-29 21:18:50 +00:00
|
|
|
description = "Continuous Integration platform built on container technology";
|
2023-01-30 14:20:57 +00:00
|
|
|
homepage = "https://github.com/harness/drone";
|
2022-03-07 02:10:17 +00:00
|
|
|
maintainers = with maintainers; [ elohmeier vdemeester techknowlogick ];
|
2021-03-30 15:16:22 +00:00
|
|
|
license = with licenses; if enableUnfree then unfreeRedistributable else asl20;
|
2016-08-13 04:58:05 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|