nixpkgs/pkgs/games/onscripter-en/default.nix

37 lines
1,016 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl
2014-10-23 02:31:49 +02:00
, libpng, libjpeg, libogg, libvorbis, freetype, smpeg
, SDL, SDL_image, SDL_mixer, SDL_ttf }:
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
2021-08-12 22:28:38 +02:00
pname = "onscripter-en";
version = "20110930";
2014-10-23 02:31:49 +02:00
src = fetchurl {
2019-06-03 17:23:43 +02:00
# The website is not available now.
url = "https://www.dropbox.com/s/ag21owy9poyr2oy/onscripter-en-20110930-src.tar.bz2";
2014-10-23 02:31:49 +02: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 12:34:47 +01:00
NIX_CFLAGS_LINK = "-lvorbisfile";
2014-10-23 02:31:49 +02:00
preBuild = ''
sed -i 's/.dll//g' Makefile
'';
meta = with lib; {
2014-10-23 02:31:49 +02:00
description = "Japanese visual novel scripting engine";
homepage = "http://unclemion.com/onscripter/";
2014-10-23 02:31:49 +02:00
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ abbradar ];
2014-10-23 02:31:49 +02:00
};
}