wesnoth: add update script

This commit is contained in:
Niklas Korz
2025-05-05 14:44:10 +02:00
parent a0891b0b76
commit d5e20fde41
+10
View File
@@ -23,6 +23,7 @@
lua,
curl,
fetchpatch,
nix-update-script,
}:
stdenv.mkDerivation rec {
@@ -121,6 +122,15 @@ stdenv.mkDerivation rec {
chmod +x "$out/bin/wesnoth"
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
# the minor release number also denotes if this is a beta release:
# even is stable, odd is beta
"^(\\d+\\.\\d*[02468]\\.\\d+)$"
];
};
meta = with lib; {
description = "Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme";
longDescription = ''