renpy: drop
The packaged version required python2, updating it showed it doesn't work, since it tries to write to its read-only output directory. Also renpy now requires their own pygame_sdl2 fork to build. More work on this would be required, and since there is no maintainer at this time I opted for the removal.
This commit is contained in:
parent
78bc359e03
commit
dda538b172
@ -1,62 +0,0 @@
|
||||
{ lib, stdenv, fetchurl, python2Packages, pkg-config, SDL2
|
||||
, libpng, ffmpeg, freetype, glew, libGL, libGLU, fribidi, zlib
|
||||
, glib
|
||||
}:
|
||||
|
||||
with python2Packages;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "renpy";
|
||||
version = "7.3.5";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Ren'Py Visual Novel Engine";
|
||||
homepage = "https://renpy.org/";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.renpy.org/dl/${version}/renpy-${version}-source.tar.bz2";
|
||||
sha256 = "1anr5cfbvbsbik4v4rvrkdkciwhg700k4lydfbs4n85raimz9mw4";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./launcherenv.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace launcher/game/choose_directory.rpy --replace /usr/bin/python ${python.interpreter}
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
python cython wrapPython tkinter
|
||||
SDL2 libpng ffmpeg freetype glew libGLU libGL fribidi zlib pygame_sdl2 glib
|
||||
];
|
||||
|
||||
pythonPath = [ pygame_sdl2 tkinter ];
|
||||
|
||||
RENPY_DEPS_INSTALL = lib.concatStringsSep "::" (map (path: path) [
|
||||
SDL2 SDL2.dev libpng ffmpeg ffmpeg.out freetype glew.dev glew.out libGLU libGL fribidi zlib
|
||||
]);
|
||||
|
||||
buildPhase = ''
|
||||
python module/setup.py build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/renpy
|
||||
cp -vr * $out/share/renpy
|
||||
rm -rf $out/share/renpy/module
|
||||
|
||||
python module/setup.py install --prefix=$out --install-lib=$out/share/renpy/module
|
||||
|
||||
makeWrapper ${python}/bin/python $out/bin/renpy \
|
||||
--set PYTHONPATH $PYTHONPATH \
|
||||
--set RENPY_BASE $out/share/renpy \
|
||||
--add-flags "-O $out/share/renpy/renpy.py"
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-I${pygame_sdl2}/include/${python.libPrefix}";
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
# The launcher game starts projects in a separate python process
|
||||
# with the -E flag, which prevents the nix set PYTHONPATH envvar
|
||||
# from taking effect, preventing the loading of pygame_sdl2
|
||||
--- a/launcher/game/project.rpy
|
||||
+++ b/launcher/game/project.rpy
|
||||
@@ -239,7 +239,7 @@
|
||||
raise Exception("Python interpreter not found: %r", executables)
|
||||
|
||||
# Put together the basic command line.
|
||||
- cmd = [ executable, "-EO", sys.argv[0] ]
|
||||
+ cmd = [ executable, "-O", sys.argv[0] ]
|
||||
|
||||
cmd.append(self.path)
|
||||
cmd.extend(args)
|
@ -848,6 +848,7 @@ mapAliases ({
|
||||
radare2-cutter = cutter; # added 2021-03-30
|
||||
redkite = throw "redkite was archived by upstream"; # added 2021-04-12
|
||||
redshift-wlr = throw "redshift-wlr has been replaced by gammastep"; # added 2021-12-25
|
||||
renpy = throw "renpy has been removed from nixpkgs, it was unmaintained and the latest packaged version required python2."; # added 2022-01-12
|
||||
retroArchCores = throw "retroArchCores has been removed. Please use overrides instead, e.g.: `retroarch.override { cores = with libretro; [ ... ]; }`"; # added 2021-11-19
|
||||
rkt = throw "rkt was archived by upstream"; # added 2020-05-16
|
||||
rpiboot-unstable = rpiboot; # added 2021-07-30
|
||||
|
@ -13805,8 +13805,6 @@ with pkgs;
|
||||
|
||||
inherit (ocamlPackages) reason;
|
||||
|
||||
renpy = callPackage ../development/interpreters/renpy { };
|
||||
|
||||
pixie = callPackage ../development/interpreters/pixie { };
|
||||
dust = callPackage ../development/interpreters/pixie/dust.nix { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user