nixpkgs/pkgs/by-name/ri/river-bedload/update-build-zig-zon.sh
Silvan Mosberger b68cc636d3 treewide: Remove nixfmt-rfc-style from update script shebangs
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.
2025-07-15 23:27:22 +02:00

11 lines
367 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash jq zon2nix
commit=$(nix-instantiate --eval -A river-bedload.src.rev | jq --raw-output)
wget "https://git.sr.ht/~novakane/river-bedload/blob/${commit}/build.zig.zon"
zon2nix build.zig.zon >pkgs/by-name/ri/river-bedload/build.zig.zon.nix
nixfmt pkgs/by-name/ri/river-bedload/build.zig.zon.nix
rm -f build.zig.zon