2016-08-14 10:01:09 +00:00
|
|
|
{ stdenv, fetchurl, pythonPackages, pkgconfig, SDL
|
|
|
|
, libpng, ffmpeg, freetype, glew, mesa, fribidi, zlib
|
2013-06-09 04:45:56 +00:00
|
|
|
}:
|
|
|
|
|
2016-08-14 10:01:09 +00:00
|
|
|
with pythonPackages;
|
|
|
|
|
2013-06-09 04:45:56 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-05-23 15:51:05 +00:00
|
|
|
name = "renpy-6.17.6";
|
2013-12-11 05:05:07 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Ren'Py Visual Novel Engine";
|
|
|
|
homepage = "http://renpy.org/";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2013-12-11 05:05:07 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2017-03-17 10:07:12 +00:00
|
|
|
# This is an ancient version, last updated in 2014 (3d59f42ce); it fails to
|
|
|
|
# build with the most recent pygame version, and fails to run with 1.9.1.
|
|
|
|
broken = true;
|
2013-12-11 05:05:07 +00:00
|
|
|
};
|
2013-06-09 04:45:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-05-23 15:51:05 +00:00
|
|
|
url = "http://www.renpy.org/dl/6.17.6/renpy-6.17.6-source.tar.bz2";
|
|
|
|
sha256 = "0rkynw9cnr1zqdinz037d9zig6grhp2ca2pyxk80vhdpjb0xrkic";
|
2013-06-09 04:45:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2014-02-26 11:18:29 +00:00
|
|
|
python cython pkgconfig wrapPython
|
2013-06-09 04:45:56 +00:00
|
|
|
SDL libpng ffmpeg freetype glew mesa fribidi zlib pygame
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = [ pygame ];
|
|
|
|
|
|
|
|
RENPY_DEPS_INSTALL = stdenv.lib.concatStringsSep "::" (map (path: "${path}") [
|
2016-09-09 14:44:58 +00:00
|
|
|
SDL SDL.dev libpng ffmpeg ffmpeg.out freetype glew.dev glew.out mesa fribidi zlib
|
2013-06-09 04:45:56 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
python module/setup.py build
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/renpy
|
|
|
|
cp -r renpy renpy.py $out/share/renpy
|
|
|
|
python module/setup.py install --prefix=$out --install-lib=$out/share/renpy/module
|
|
|
|
|
|
|
|
wrapPythonPrograms
|
|
|
|
makeWrapper ${python}/bin/python $out/bin/renpy \
|
|
|
|
--set PYTHONPATH $program_PYTHONPATH \
|
|
|
|
--set RENPY_BASE $out/share/renpy \
|
|
|
|
--add-flags "-O $out/share/renpy/renpy.py"
|
|
|
|
'';
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${pygame}/include/${python.libPrefix}";
|
|
|
|
}
|