chore: make zim updater more awesome
This commit is contained in:
+5
-19
@@ -1,22 +1,8 @@
|
||||
{
|
||||
writeShellApplication,
|
||||
nix-prefetch,
|
||||
gcc,
|
||||
go,
|
||||
...
|
||||
buildGoModule,
|
||||
}:
|
||||
let
|
||||
goscript = ./updater.go;
|
||||
in
|
||||
writeShellApplication {
|
||||
name = "update-zims";
|
||||
runtimeInputs = [
|
||||
gcc
|
||||
go
|
||||
nix-prefetch
|
||||
];
|
||||
text = ''
|
||||
go build -o updater ${goscript}
|
||||
./updater "$@"
|
||||
'';
|
||||
buildGoModule {
|
||||
name = "updater";
|
||||
src = ./.;
|
||||
vendorHash = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user