Significant updates to zim update script

No longer silently panic when a command fails
Check that filename has changed and only run when there is a newer
filename
Write output directly to file rather than to stdout
This commit is contained in:
Greg Hellings
2025-10-15 12:25:22 -05:00
parent 9e4ff037de
commit dae6406c45
2 changed files with 92 additions and 16 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
{
writeShellApplication,
nix-prefetch,
gcc,
go,
...
}:
@@ -10,10 +11,11 @@ in
writeShellApplication {
name = "update-zims";
runtimeInputs = [
gcc
go
nix-prefetch
];
text = ''
go run ${goscript}
go run ${goscript} -- pkgs/zim/blobs.json
'';
}