pinact: 1.0.0 -> 1.1.2 and set CGO_ENABLED=0 (#368078)
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / ferdium / update.sh
blobbaae211ee9bdeb576afb327a66773eaac5badfa9
1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p git bash curl jq nix-update
4 set -xe
6 dirname="$(dirname "$0")"
8 latestTag=$(curl https://api.github.com/repos/ferdium/ferdium-app/releases/latest | jq -r ".tag_name")
9 latestVersion="$(expr $latestTag : 'v\(.*\)')"
11 nix-update --version "$latestVersion" --system aarch64-linux --override-filename "$dirname/default.nix" ferdium
12 nix-update --version skip --system x86_64-linux --override-filename "$dirname/default.nix" ferdium