update-scripts/version-info: convert to a script

This will allow us to do impure things if needed.

(cherry picked from commit a95db128a6)
This commit is contained in:
Matt Sturgeon 2025-05-24 09:32:19 +01:00 committed by nix-infra-bot
parent 70e8dfadba
commit dfbab369c4
3 changed files with 43 additions and 32 deletions

View file

@ -43,7 +43,7 @@ writeShellApplication {
versionInfo() {
nix-build ./update-scripts -A version-info
install -m 644 -T "$(realpath result)" ./version-info.toml
./result
if [ -n "$commit" ]; then
git add version-info.toml
git commit "$@"