1 #!/usr/bin/env nix-shell
2 #!nix-shell -i nu -p nushell common-updater-scripts
4 # get latest tag, but drop versions 10.0 tags since they are 10+ years old
5 let latest_tag = list-git-tags --url=https://github.com/LMS-Community/slimserver | lines | find --invert 10.0 | sort --natural | last
7 let current_version = nix eval --raw -f default.nix slimserver | str trim
9 if $latest_tag != $current_version {
10 update-source-version slimserver $latest_tag $"--file=(pwd)/pkgs/by-name/sl/slimserver/package.nix"
11 {before: $current_version, after: $latest_tag}