nixpkgs/pkgs/by-name/ri/river/update.nu
Adam Stephens 9630384d01
river: 0.3.1 -> 0.3.2
https://codeberg.org/river/river/releases/tag/v0.3.2

Added update script. zon2nix is not currently working with zig 0.12,
so will not work fully until resolved.
2024-05-20 23:49:24 -04:00

9 lines
401 B
Plaintext
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i nu -p nushell common-updater-scripts zon2nix
let latest_tag = list-git-tags --url=https://codeberg.org/river/river | lines | sort --natural | str replace v '' | last
update-source-version river $latest_tag
http get $"https://codeberg.org/river/river/raw/tag/v($latest_tag)/build.zig.zon" | save build.zig.zon
zon2nix > pkgs/by-name/ri/river/build.zig.zon.nix