nixpkgs/pkgs/development/tools/continuous-integration/drone/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
818 B
Nix
Raw Normal View History

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 {
pname = "drone.io${lib.optionalString (!enableUnfree) "-oss"}";
2024-01-02 18:00:03 +00:00
version = "2.22.0";
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" ];
2022-09-21 13:56:47 +00:00
doCheck = false;
meta = with lib; {
2023-01-29 21:18:50 +00:00
description = "Continuous Integration platform built on container technology";
homepage = "https://github.com/harness/drone";
2022-03-07 02:10:17 +00:00
maintainers = with maintainers; [ elohmeier vdemeester techknowlogick ];
license = with licenses; if enableUnfree then unfreeRedistributable else asl20;
2016-08-13 04:58:05 +00:00
};
}