add updater to drone-runner-docker

This commit is contained in:
Charlotte 🦝 Delenk 2022-09-25 19:42:38 +01:00
parent f94585190a
commit a5cc88b548
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -9,7 +9,7 @@
inherit (source) rev sha256; inherit (source) rev sha256;
}; };
in in
buildGoModule { buildGoModule rec {
pname = "drone-runner-docker"; pname = "drone-runner-docker";
version = source.date; version = source.date;
inherit src; inherit src;
@ -33,4 +33,9 @@ in
} }
]; ];
}; };
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
'';
} }