1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p nix-update curl jq
4 version
=$
(curl
"https://download.wavebox.app/stable/linux/latest.json" | jq
--raw-output '.["urls"]["tar"] | match("https://download.wavebox.app/stable/linux/tar/Wavebox_(.+).tar.gz").captures[0]["string"]')
5 nix-update wavebox
--version "$version"