1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p bash common-updater-scripts gnused nixfmt-rfc-style zon2nix
4 latest_tag
=$
(list-git-tags
--url=https
://codeberg.org
/ifreund
/waylock |
sed 's/^v//' |
tail -n 1)
6 update-source-version waylock
"$latest_tag"
8 wget
"https://codeberg.org/ifreund/waylock/raw/tag/v${latest_tag}/build.zig.zon"
9 nix
--extra-experimental-features 'nix-command flakes' run github
:Cloudef
/zig2nix
#zon2nix -- build.zig.zon >pkgs/by-name/wa/waylock/build.zig.zon.nix
11 sed -i '\|file = unpackZigArtifact { inherit name; artifact = /. + path; };|d' pkgs
/by-name
/wa
/waylock
/build.zig.zon.nix
12 nixfmt pkgs
/by-name
/wa
/waylock
/build.zig.zon.nix
14 rm -f build.zig.zon build.zig.zon2json-lock