nixpkgs/pkgs/servers/mir/update.sh
OPNA2608 20851477dc mir.passthru.updateScript: Look at tags instead of releases
Latest hotfix wasn't pushed as a release.
2024-10-31 22:36:21 +01:00

9 lines
293 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl gnused jq common-updater-scripts
set -eou pipefail
version="$(curl --silent "https://api.github.com/repos/canonical/mir/tags" | jq '.[0].name' --raw-output)"
update-source-version mir "${version:1}" --file=./pkgs/servers/mir/default.nix