Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
581 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
writeShellApplication,
curl,
jq,
gnused,
nix,
nix-prefetch-github,
common-updater-scripts,
}:
engine:
lib.getExe (writeShellApplication {
name = "openra-updater";
runtimeInputs = [
curl
jq
gnused
nix
nix-prefetch-github
common-updater-scripts
];
runtimeEnv = {
build = engine.build;
currentVersion = engine.version;
currentRev = lib.optionalString (lib.hasAttr "rev" engine) engine.rev;
};
bashOptions = [
"errexit"
"errtrace"
"nounset"
"pipefail"
];
text = lib.readFile ./updater.sh;
})