15 stdenv.mkDerivation (finalAttrs: {
19 src = fetchFromGitHub {
22 rev = "v${finalAttrs.version}";
23 hash = "sha256-WA/VJqHXzBfVUBNtxCVsGBRzSRQ0pvDvAy03ntc0KZE=";
26 luaEnv = lua.withPackages(p: with p; [ luafilesystem lpeg luasec luasocket ]);
27 nativeBuildInputs = [ cmake doxygen makeWrapper ];
28 buildInputs = [ ffmpeg freetype lua finalAttrs.luaEnv SDL2 SDL2_mixer timidity ];
29 cmakeFlags = [ "-Wno-dev" ];
32 wrapProgram $out/bin/corsix-th \
33 --set LUA_PATH "$LUA_PATH" \
34 --set LUA_CPATH "$LUA_CPATH"
38 description = "A reimplementation of the 1997 Bullfrog business sim Theme Hospital.";
39 homepage = "https://corsixth.com/";
40 license = licenses.mit;
41 maintainers = with maintainers; [ hughobrien ];
42 platforms = platforms.linux;