Files
nixos/pkgs/zim/updater.nix
T
Greg Hellings 7510136304 Move zims to their own package
Instead of manually downloading the Zim files with a torrent directly,
move them into an actual derivation so it can easily be built into the
resulting images. Also, write an updater script that can automatically
download the files, determine the latest versions for each type and each
language, and generate the hash key values for them
2024-10-12 10:39:03 -05:00

20 lines
232 B
Nix

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