wesnoth: add update script
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user