renpy: automatically update version codename

Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
Marcin Serwin
2025-07-26 19:35:09 +02:00
parent fb5c5793ed
commit 66ba8a58af
2 changed files with 13 additions and 3 deletions
+2 -3
View File
@@ -11,7 +11,6 @@
libGLU,
libpng,
makeWrapper,
nix-update-script,
pkg-config,
python3,
SDL2,
@@ -99,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
official = False
nightly = False
# Look at https://renpy.org/latest.html for what to put.
version_name = 'Tomorrowland'
version_name = "Tomorrowland"
EOF
'';
@@ -131,7 +130,7 @@ stdenv.mkDerivation (finalAttrs: {
doInstallCheck = true;
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
passthru.updateScript = ./update.sh;
meta = {
description = "Visual Novel Engine";
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash nix-update html-xml-utils
set -ex
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
codename=`curl -L https://renpy.org/latest.html | hxclean | hxselect -c h1 small`
sed -E -i "s/(version_name = ).*/\1$codename/" $SCRIPT_DIR/package.nix
nix-update renpy