import writeScript

This commit is contained in:
Charlotte 🦝 Delenk 2022-09-25 20:08:10 +01:00
parent 0d0f788a5c
commit 34c1b687e2
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -1,6 +1,7 @@
{
fetchFromGitHub,
buildGoModule,
writeScript
}: let
source = builtins.fromJSON (builtins.readFile ./source.json);
src = fetchFromGitHub {
@ -33,9 +34,8 @@ 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
'';
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 '';
}