2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2014-10-23 01:31:49 +01:00
|
|
|
, libpng, libjpeg, libogg, libvorbis, freetype, smpeg
|
|
|
|
, SDL, SDL_image, SDL_mixer, SDL_ttf }:
|
|
|
|
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2021-08-12 21:28:38 +01:00
|
|
|
pname = "onscripter-en";
|
2022-08-01 07:35:39 +01:00
|
|
|
version = "20111009";
|
2014-10-23 01:31:49 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-06-03 16:23:43 +01:00
|
|
|
# The website is not available now.
|
2022-08-01 07:35:39 +01:00
|
|
|
url = "https://www.dropbox.com/s/ag21owy9poyr2oy/onscripter-en-20111009-src.tar.bz2";
|
|
|
|
sha256 = "sha256-pir3ExhehJ9zNygDN83S4GOs5ugDNMjngxEwklAz9c8=";
|
2014-10-23 01:31:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 01:31:49 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
sed -i 's/.dll//g' Makefile
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-28 14:23:50 +01:00
|
|
|
broken = stdenv.isDarwin;
|
2014-10-23 01:31:49 +01:00
|
|
|
description = "Japanese visual novel scripting engine";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://unclemion.com/onscripter/";
|
2014-10-23 01:31:49 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2015-05-14 18:09:10 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2014-10-23 01:31:49 +01:00
|
|
|
};
|
|
|
|
}
|