1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{
lib,
SDL,
SDL_image,
SDL_mixer,
SDL_ttf,
fetchFromGitHub,
freetype,
libjpeg,
libogg,
libpng,
libvorbis,
pkg-config,
smpeg,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "onscripter-en";
version = "20110930";
# The website is not available now. Let's use a Museoa backup
src = fetchFromGitHub {
owner = "museoa";
repo = "onscripter-en";
rev = finalAttrs.version;
hash = "sha256-Lc5ZlH2C4ER02NmQ6icfiqpzVQdVUnOmdywGjjjSYSg=";
};
nativeBuildInputs = [
SDL
pkg-config
smpeg
];
buildInputs = [
SDL
SDL_image
SDL_mixer
SDL_ttf
freetype
libjpeg
libogg
libpng
libvorbis
smpeg
];
configureFlags = [ "--no-werror" ];
strictDeps = true;
preBuild = ''
sed -i 's/.dll//g' Makefile
'';
meta = {
homepage = "http://github.com/museoa/onscripter-en";
description = "Japanese visual novel scripting engine";
license = lib.licenses.gpl2Plus;
mainProgram = "onscripter-en";
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isDarwin;
};
})
|