···22set -euo pipefail
3344url="https://boosteroid.com/linux/installer/boosteroid_portable.tar"
55-pkg="$(dirname "$(realpath "$0")")/package.nix"
55+# Run by update-pkgs from the flake root ($0 is a read-only store copy).
66+pkg=tools/boosteroid/package.nix
6778old_hash=$(grep -oP 'hash = "\K[^"]+' "$pkg")
89
···11+bin "update-pkgs"
22+about "Run the passthru.updateScript of flake packages, like nixpkgs' update.py"
33+44+flag "--list" help="Only list the packages with an updateScript and their command"
55+arg "[attr]..." help="Package attributes to update (default: every package with an updateScript)" var=#true