depot/pkgs/applications/emulators/86box/update.sh
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

12 lines
561 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p jq nix-prefetch-github common-updater-scripts
set -euo pipefail
latest_release=$(curl --silent https://api.github.com/repos/86Box/86Box/releases/latest)
version=$(jq -r '.tag_name' <<<"$latest_release" | cut -c2-)
main_hash=$(nix-prefetch-github --json --rev "v$version" 86Box 86Box | jq -r '.hash')
roms_hash=$(nix-prefetch-github --json --rev "v$version" 86Box roms | jq -r '.hash')
update-source-version _86Box "_$version" "$main_hash"
update-source-version _86Box "$version" "$roms_hash" --source-key=roms