This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/ci/drone-runner-docker/default.nix

42 lines
1.3 KiB
Nix
Raw Normal View History

2022-06-23 08:30:56 +00:00
{
2022-09-25 16:06:38 +00:00
fetchFromGitHub,
buildGoModule,
2022-09-26 10:08:18 +00:00
writeScript,
2022-09-25 16:06:38 +00:00
}: let
source = builtins.fromJSON (builtins.readFile ./source.json);
src = fetchFromGitHub {
owner = "drone-runners";
repo = "drone-runner-docker";
inherit (source) rev sha256;
};
in
2022-09-25 18:42:38 +00:00
buildGoModule rec {
2022-06-23 08:30:56 +00:00
pname = "drone-runner-docker";
2022-09-25 16:06:38 +00:00
version = source.date;
inherit src;
vendorSha256 = builtins.readFile ./goVendor.hash;
2022-06-23 08:30:56 +00:00
proxyVendor = true;
2022-09-25 16:06:38 +00:00
meta = {
description = "Docker executor for drone";
license = [
{
free = false;
fullName = "PolyForm Small Business License 1.0.0";
redistributable = true;
spdxId = "PolyForm-Small-Business-1.0.0";
url = "https://spdx.org/licenses/PolyForm-Small-Business-1.0.0.html";
}
{
free = false;
fullName = "PolyForm Free Trial License 1.0.0";
redistributable = true;
url = "https://polyformproject.org/licenses/free-trial/1.0.0/";
}
];
};
2022-09-26 10:08:18 +00:00
passthru.updateScript = writeScript "update-matrix-media-repo" ''
${../../scripts/update-git.sh} "https://github.com/drone-runners/drone-runner-docker" ci/drone-runner-docker/source.json
SRC_PATH=$(nix-build -E '(import ./. {}).${pname}.src')
${../../scripts/update-go.sh} ./ci/drone-runner-docker ci/drone-runner-docker/goVendor.hash '';
2022-09-25 16:06:38 +00:00
}