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
22 lines
270 B
Nix
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
|
|
'';
|
|
}
|