1 { stdenv, lib, fetchFromGitHub, pkg-config, SDL, SDL_image, SDL_ttf, SDL_gfx, flex, bison }:
4 makeSDLFlags = map (p: "-I${lib.getDev p}/include/SDL");
6 in stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "092vp61ngd2vscsvyisi7dv6qrk5m1i81gg19hyfl5qvjq5p0p8g";
17 nativeBuildInputs = [ pkg-config flex bison ];
19 buildInputs = [ SDL SDL_image SDL_ttf SDL_gfx ];
21 env.NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ SDL SDL_image SDL_ttf SDL_gfx ]);
24 ./parse.patch # Fixes compilation error by avoiding redundant definitions.
28 inherit (src.meta) homepage;
29 description = "Slide show presentation tool";
31 platforms = platforms.unix;
32 license = licenses.gpl3;