Based on the Nixpkgs used and the version of nixfmt-rfc-style in that version, it's likely that not the correct version is used. Update scripts should instead run within a Nixpkgs development shell (`nix-shell`/`nix develop`/`direnv`), where the correct version of `nixfmt` (although `treefmt` should be preferred) is always available.
13 lines
483 B
Bash
Executable File
13 lines
483 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p bash common-updater-scripts gnused zon2nix
|
|
|
|
latest_tag=$(list-git-tags --url=https://codeberg.org/river/river | sed 's/^v//' | sort --version-sort | tail --lines=1)
|
|
|
|
update-source-version river "$latest_tag"
|
|
|
|
wget "https://codeberg.org/river/river/raw/tag/v${latest_tag}/build.zig.zon"
|
|
zon2nix build.zig.zon >pkgs/by-name/ri/river/build.zig.zon.nix
|
|
nixfmt pkgs/by-name/ri/river/build.zig.zon.nix
|
|
|
|
rm -f build.zig.zon build.zig.zon.nix
|