2014-10-23 00:31:49 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, libpng, libjpeg, libogg, libvorbis, freetype, smpeg
|
|
|
|
, SDL, SDL_image, SDL_mixer, SDL_ttf }:
|
|
|
|
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-10-23 00:31:49 +00:00
|
|
|
name = "onscripter-en-20110930";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-06-03 15:23:43 +00:00
|
|
|
# The website is not available now.
|
|
|
|
url = "https://www.dropbox.com/s/ag21owy9poyr2oy/onscripter-en-20110930-src.tar.bz2";
|
2014-10-23 00:31:49 +00:00
|
|
|
sha256 = "1kzm6d894c0ihgkwhd03x3kaqqz0sb6kf0r86xrrz12y309zfam6";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libpng libjpeg libogg libvorbis freetype smpeg
|
|
|
|
SDL SDL_image SDL_mixer SDL_ttf
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [ "--no-werror" ];
|
|
|
|
|
|
|
|
# Without this libvorbisfile.so is not getting linked properly for some reason.
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_CFLAGS_LINK = "-lvorbisfile";
|
2014-10-23 00:31:49 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
sed -i 's/.dll//g' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Japanese visual novel scripting engine";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://unclemion.com/onscripter/;
|
2014-10-23 00:31:49 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2015-05-14 17:09:10 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2014-10-23 00:31:49 +00:00
|
|
|
};
|
|
|
|
}
|