nixpkgs/pkgs/applications/networking/instant-messengers/wavebox/update.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
316 B
Bash
Raw Normal View History

2023-10-03 06:42:40 +00:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-update curl jq
2023-10-03 06:42:40 +00:00
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"]')
nix-update wavebox --version "$version"