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

27 lines
749 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule
, enableUnfree ? true }:
2016-08-13 06:58:05 +02:00
2019-09-07 17:55:45 +02:00
buildGoModule rec {
pname = "drone.io${lib.optionalString (!enableUnfree) "-oss"}";
2021-07-03 06:01:19 +02:00
version = "2.0.3";
2016-08-13 06:58:05 +02:00
2021-07-03 06:01:19 +02:00
vendorSha256 = "sha256-3qTH/p0l6Ke1F9SUcvK2diqZooOMnlXYO1PHLdJJ8PM=";
2016-08-13 06:58:05 +02:00
doCheck = false;
2016-08-13 06:58:05 +02:00
src = fetchFromGitHub {
owner = "drone";
repo = "drone";
2019-09-07 17:55:45 +02:00
rev = "v${version}";
2021-07-03 06:01:19 +02:00
sha256 = "sha256-MKV5kor+Wm9cuIFFcjSNyCgVKtY+/B9sgBOXMMRvMPI=";
2016-08-13 06:58:05 +02:00
};
2021-08-08 02:11:16 +02:00
tags = lib.optionals (!enableUnfree) [ "oss" "nolimit" ];
meta = with lib; {
2019-09-07 17:55:45 +02:00
maintainers = with maintainers; [ elohmeier vdemeester ];
license = with licenses; if enableUnfree then unfreeRedistributable else asl20;
2016-08-13 06:58:05 +02:00
description = "Continuous Integration platform built on container technology";
};
}