add Ren'Py 6.15.5
Ren'Py is a visual novel engine that helps you use words, images, and sounds to tell stories with the computer. This is just the minimal launcher.
This commit is contained in:
parent
2ff588bb5d
commit
d4c6b5924d
49
pkgs/development/interpreters/renpy/default.nix
Normal file
49
pkgs/development/interpreters/renpy/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ stdenv, fetchurl, python, pkgconfig, wrapPython
|
||||
, pygame, SDL, libpng, ffmpeg, freetype, glew, mesa, fribidi, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "renpy-6.15.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.renpy.org/dl/6.15.5/renpy-6.15.5-source.tar.bz2";
|
||||
sha256 = "1k57dak1yk5iyxripqn2syhwwkh70y00pnnb9i1qf19lmiirxa60";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
python pkgconfig wrapPython
|
||||
SDL libpng ffmpeg freetype glew mesa fribidi zlib pygame
|
||||
];
|
||||
|
||||
pythonPath = [ pygame ];
|
||||
|
||||
RENPY_DEPS_INSTALL = stdenv.lib.concatStringsSep "::" (map (path: "${path}") [
|
||||
SDL libpng ffmpeg freetype glew mesa fribidi zlib
|
||||
]);
|
||||
|
||||
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 \
|
||||
--set RENPY_LESS_UPDATES 1 \
|
||||
--add-flags "-O $out/share/renpy/renpy.py"
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-I${pygame}/include/${python.libPrefix}";
|
||||
|
||||
meta = {
|
||||
description = "Ren'Py Visual Novel Engine";
|
||||
homepage = "http://renpy.org/";
|
||||
licence = "MIT";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
@ -3026,6 +3026,11 @@ let
|
||||
|
||||
regina = callPackage ../development/interpreters/regina {};
|
||||
|
||||
renpy = callPackage ../development/intepreters/renpy {
|
||||
ffmpeg = ffmpeg_1;
|
||||
wrapPython = pythonPackages.wrapPython;
|
||||
};
|
||||
|
||||
ruby18 = callPackage ../development/interpreters/ruby/ruby-18.nix { };
|
||||
ruby19 = callPackage ../development/interpreters/ruby/ruby-19.nix { };
|
||||
ruby2 = lowPrio (callPackage ../development/interpreters/ruby/ruby-2.0.nix { });
|
||||
|
Loading…
Reference in New Issue
Block a user