Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / finance / denaro / update.sh
blob545cbf1e827aab53da063602a0e96ed7b84d1d9d
1 #!/usr/bin/env nix-shell
2 #!nix-shell -I nixpkgs=./. -i bash -p curl jq common-updater-scripts
3 #shellcheck shell=bash
5 set -eu -o pipefail
7 version=$(curl -s ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} \
8 https://api.github.com/repos/NickvisionApps/Denaro/releases/latest | jq -e -r .tag_name)
9 old_version=$(nix-instantiate --eval -A denaro.version | jq -e -r)
11 if [[ $version == "$old_version" ]]; then
12 echo "New version same as old version, nothing to do." >&2
13 exit 0
16 update-source-version denaro "$version"
18 $(nix-build -A denaro.fetch-deps --no-out-link) "$(dirname -- "${BASH_SOURCE[0]}")/deps.nix"