renpy: 8.0.1 -> 8.1.0
This commit is contained in:
parent
60c84c8841
commit
815c64807b
3 changed files with 21 additions and 24 deletions
|
@ -8,8 +8,8 @@ let
|
||||||
# base_version is of the form major.minor.patch
|
# base_version is of the form major.minor.patch
|
||||||
# vc_version is of the form YYMMDDCC
|
# vc_version is of the form YYMMDDCC
|
||||||
# version corresponds to the tag on GitHub
|
# version corresponds to the tag on GitHub
|
||||||
base_version = "8.0.3";
|
base_version = "8.1.0";
|
||||||
vc_version = "22090809";
|
vc_version = "23051307";
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "renpy";
|
pname = "renpy";
|
||||||
|
|
||||||
|
@ -19,19 +19,20 @@ in stdenv.mkDerivation rec {
|
||||||
owner = "renpy";
|
owner = "renpy";
|
||||||
repo = "renpy";
|
repo = "renpy";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-0/wkUk7PMPbBSGzDuSd82yxRzvAYxkbEhM5LTVt4bMA=";
|
sha256 = "sha256-5EU4jaBTU+a9UNHRs7xrKQ7ZivhDEqisO3l4W2E6F+c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
makeWrapper
|
makeWrapper
|
||||||
python3.pkgs.cython
|
python3.pkgs.cython
|
||||||
|
python3.pkgs.setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
SDL2 libpng ffmpeg freetype glew libGLU libGL fribidi zlib
|
SDL2 libpng ffmpeg freetype glew libGLU libGL fribidi zlib
|
||||||
] ++ (with python3.pkgs; [
|
] ++ (with python3.pkgs; [
|
||||||
python pygame_sdl2 tkinter future six pefile requests
|
python pygame_sdl2 tkinter future six pefile requests ecdsa
|
||||||
]);
|
]);
|
||||||
|
|
||||||
RENPY_DEPS_INSTALL = lib.concatStringsSep "::" (map (path: path) [
|
RENPY_DEPS_INSTALL = lib.concatStringsSep "::" (map (path: path) [
|
||||||
|
@ -41,14 +42,10 @@ in stdenv.mkDerivation rec {
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./renpy-system-fribidi.diff
|
|
||||||
./shutup-erofs-errors.patch
|
./shutup-erofs-errors.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace module/setup.py \
|
|
||||||
--replace "@fribidi@" "${fribidi.dev}"
|
|
||||||
|
|
||||||
cp tutorial/game/tutorial_director.rpy{m,}
|
cp tutorial/game/tutorial_director.rpy{m,}
|
||||||
|
|
||||||
cat > renpy/vc_version.py << EOF
|
cat > renpy/vc_version.py << EOF
|
||||||
|
@ -67,7 +64,7 @@ in stdenv.mkDerivation rec {
|
||||||
installPhase = with python3.pkgs; ''
|
installPhase = with python3.pkgs; ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
${python.pythonForBuild.interpreter} module/setup.py install --prefix=$out
|
${python.pythonForBuild.interpreter} module/setup.py install_lib -d $out/${python.sitePackages}
|
||||||
mkdir -p $out/share/renpy
|
mkdir -p $out/share/renpy
|
||||||
cp -vr sdk-fonts gui launcher renpy the_question tutorial renpy.py $out/share/renpy
|
cp -vr sdk-fonts gui launcher renpy the_question tutorial renpy.py $out/share/renpy
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 1660c8f20ac807fcd0ce65a8b9dc31e646a40711 Mon Sep 17 00:00:00 2001
|
From 09e598ddf1f6af72ccb6c7c9301abff689e64f88 Mon Sep 17 00:00:00 2001
|
||||||
From: =?UTF-8?q?=E5=A4=9C=E5=9D=82=E9=9B=85?=
|
From: =?UTF-8?q?=E5=A4=9C=E5=9D=82=E9=9B=85?=
|
||||||
<23130178+ShadowRZ@users.noreply.github.com>
|
<23130178+ShadowRZ@users.noreply.github.com>
|
||||||
Date: Sat, 13 Aug 2022 19:26:42 +0800
|
Date: Wed, 17 May 2023 14:32:03 +0800
|
||||||
Subject: [PATCH] Don't print a backtrace on EROFS
|
Subject: [PATCH] Don't print a backtrace on EROFS
|
||||||
|
|
||||||
This can shut up EROFS errors caused by writing to read-only /nix/store.
|
This can shut up EROFS errors caused by writing to read-only /nix/store.
|
||||||
|
@ -10,20 +10,20 @@ This can shut up EROFS errors caused by writing to read-only /nix/store.
|
||||||
1 file changed, 4 insertions(+)
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
diff --git a/renpy/script.py b/renpy/script.py
|
diff --git a/renpy/script.py b/renpy/script.py
|
||||||
index 3e5dae8..8f103c1 100644
|
index de35457ba..b7d511560 100644
|
||||||
--- a/renpy/script.py
|
--- a/renpy/script.py
|
||||||
+++ b/renpy/script.py
|
+++ b/renpy/script.py
|
||||||
@@ -656,6 +656,10 @@ class Script(object):
|
@@ -705,6 +705,10 @@ class Script(object):
|
||||||
rpydigest = hashlib.md5(fullf.read()).digest()
|
rpydigest = hashlib.md5(fullf.read()).digest()
|
||||||
|
|
||||||
self.write_rpyc_md5(f, rpydigest)
|
self.write_rpyc_md5(f, rpydigest)
|
||||||
+ except OSError as e:
|
+ except OSError as e:
|
||||||
+ if e.errno != 30:
|
+ if e.errno != 30:
|
||||||
+ import traceback
|
+ import traceback
|
||||||
+ traceback.print_exc()
|
+ traceback.print_exc()
|
||||||
except Exception:
|
except Exception:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
--
|
--
|
||||||
2.37.1
|
2.40.1
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.renpy.org/dl/${renpy_version}/pygame_sdl2-${version}-for-renpy-${renpy_version}.tar.gz";
|
url = "https://www.renpy.org/dl/${renpy_version}/pygame_sdl2-${version}-for-renpy-${renpy_version}.tar.gz";
|
||||||
hash = "sha256-BpETor1dz8qdMM8iYijlthnsrPF0FS8b1FDvuXxFB9s=";
|
hash = "sha256-smJsOVavMvy0aO3C5PC050LlOy5bsG45uWSMbbFMQ+I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# force rebuild of headers needed for install
|
# force rebuild of headers needed for install
|
||||||
|
|
Loading…
Reference in a new issue