diff options
author | Nikolay Amiantov <ab@fmap.me> | 2014-10-23 04:31:49 +0400 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2014-10-27 01:45:17 +0300 |
commit | a94eadacf2be6dd1fccd6b1ca37f56a6a84c86cb (patch) | |
tree | edce3424d28865b440bf08b753ffb65269e06cf2 /pkgs/games/onscripter-en | |
parent | 05760bb2c79007c7a3f0ccc3f667e5663157d7e6 (diff) |
onscripter-en: add package
Diffstat (limited to 'pkgs/games/onscripter-en')
-rw-r--r-- | pkgs/games/onscripter-en/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/games/onscripter-en/default.nix b/pkgs/games/onscripter-en/default.nix new file mode 100644 index 0000000000000..1d0bf636e2e9c --- /dev/null +++ b/pkgs/games/onscripter-en/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl +, libpng, libjpeg, libogg, libvorbis, freetype, smpeg +, SDL, SDL_image, SDL_mixer, SDL_ttf }: + + +stdenv.mkDerivation rec { + name = "onscripter-en-20110930"; + + src = fetchurl { + url = "http://unclemion.com/dev/attachments/download/36/${name}-src.tar.bz2"; + 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. + NIX_CFLAGS_LINK = [ "-lvorbisfile" ]; + + preBuild = '' + sed -i 's/.dll//g' Makefile + ''; + + meta = with stdenv.lib; { + description = "Japanese visual novel scripting engine"; + homepage = "http://dev.haeleth.net/onscripter.shtml"; + license = licenses.gpl2; + platforms = platforms.unix; + maintainers = maintainers.abbradar; + }; +} |