Commit d5e20fde authored by Niklas Korz's avatar Niklas Korz
Browse files

wesnoth: add update script

parent a0891b0b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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 = ''