about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/ferdium/update.sh
blob: baae211ee9bdeb576afb327a66773eaac5badfa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p git bash curl jq nix-update

set -xe

dirname="$(dirname "$0")"

latestTag=$(curl https://api.github.com/repos/ferdium/ferdium-app/releases/latest | jq -r ".tag_name")
latestVersion="$(expr $latestTag : 'v\(.*\)')"

nix-update --version "$latestVersion" --system aarch64-linux --override-filename "$dirname/default.nix" ferdium
nix-update --version skip --system x86_64-linux --override-filename "$dirname/default.nix" ferdium