
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.
14 lines
519 B
Bash
Executable File
14 lines
519 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p bash common-updater-scripts gnused
|
|
|
|
latest_tag=$(list-git-tags --url=https://github.com/nmeum/creek | sed 's/^v//' | tail -n 1)
|
|
|
|
update-source-version creek "$latest_tag"
|
|
|
|
wget "https://raw.githubusercontent.com/nmeum/creek/v${latest_tag}/build.zig.zon"
|
|
nix --extra-experimental-features 'nix-command flakes' run github:nix-community/zon2nix# -- build.zig.zon >pkgs/by-name/cr/creek/build.zig.zon.nix
|
|
|
|
nixfmt pkgs/by-name/cr/creek/build.zig.zon.nix
|
|
|
|
rm -rf build.zig.zon
|