services: drone: use runners from nixpkgs

This commit is contained in:
Bruno BELANYI 2021-03-26 19:34:51 +00:00
parent 3b07633eb7
commit 61fcfec4cb

View file

@ -11,28 +11,9 @@ let
hasRunner = (name: builtins.elem name cfg.runners); hasRunner = (name: builtins.elem name cfg.runners);
execPkg = pkgs.nur.repos.mic92.drone-runner-exec; execPkg = pkgs.drone-runner-exec;
dockerPkg = with pkgs; with stdenv; buildGoModule rec { dockerPkg = pkgs.drone-runner-docker;
pname = "drone-runner-docker";
version = "2020-04-19";
src = fetchFromGitHub {
owner = "drone-runners";
repo = "drone-runner-docker";
rev = "v1.6.3";
sha256 = "sha256-WI3pr0t6EevIBOQwCAI+CY2O8Q7+W/CLDT/5Y0+tduQ=";
};
vendorSha256 = "sha256-tQPM91jMH2/nJ2pq8ExS/dneeLNb/vcL9kmEjyNtl5Y=";
meta = with lib; {
description = "Drone pipeline runner that executes builds using docker";
homepage = "https://github.com/drone-runners/drone-runner-docker";
# https://polyformproject.org/licenses/small-business/1.0.0/
license = licenses.unfree;
};
};
in in
{ {
options.my.services.drone = with lib; { options.my.services.drone = with lib; {