Files
nixos/pkgs/zim/updater.nix
T

23 lines
279 B
Nix
Raw Normal View History

2024-10-12 10:35:54 -05:00
{
writeShellApplication,
nix-prefetch,
2025-10-15 12:25:22 -05:00
gcc,
2024-10-12 10:35:54 -05:00
go,
...
}:
let
goscript = ./updater.go;
in
writeShellApplication {
name = "update-zims";
runtimeInputs = [
2025-10-15 12:25:22 -05:00
gcc
2024-10-12 10:35:54 -05:00
go
nix-prefetch
];
text = ''
2025-10-15 23:13:06 -05:00
go build -o updater ${goscript}
./updater "$@"
2024-10-12 10:35:54 -05:00
'';
}