Files
nixos/pkgs/zim/updater.nix
T
Greg Hellings dae6406c45 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
2025-10-15 12:25:22 -05:00

22 lines
270 B
Nix

{
writeShellApplication,
nix-prefetch,
gcc,
go,
...
}:
let
goscript = ./updater.go;
in
writeShellApplication {
name = "update-zims";
runtimeInputs = [
gcc
go
nix-prefetch
];
text = ''
go run ${goscript} -- pkgs/zim/blobs.json
'';
}