blob: 438e856b742b4aa5eb9be5ed5c31a934743c9572 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
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;
})
|