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:
@@ -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
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user