diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/continuous-integration/drone/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/continuous-integration/drone/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/continuous-integration/drone/default.nix b/nixpkgs/pkgs/development/tools/continuous-integration/drone/default.nix new file mode 100644 index 000000000000..29a593acc306 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/continuous-integration/drone/default.nix @@ -0,0 +1,30 @@ +{ lib +, fetchFromGitHub +, buildGoModule +, enableUnfree ? true +}: + +buildGoModule rec { + pname = "drone.io${lib.optionalString (!enableUnfree) "-oss"}"; + version = "2.22.0"; + + src = fetchFromGitHub { + owner = "harness"; + repo = "drone"; + rev = "v${version}"; + sha256 = "sha256-haxxILbM3REdSK4h4LN+HhRvl3VK9Ozf2NfnLTL5T3A="; + }; + + vendorHash = "sha256-n4KbKkqAnHDIsXs8A/FE+rCkSKQKr5fv7npJ/X6t0mk="; + + tags = lib.optionals (!enableUnfree) [ "oss" "nolimit" ]; + + doCheck = false; + + meta = with lib; { + description = "Continuous Integration platform built on container technology"; + homepage = "https://github.com/harness/drone"; + maintainers = with maintainers; [ elohmeier vdemeester techknowlogick ]; + license = with licenses; if enableUnfree then unfreeRedistributable else asl20; + }; +} |