2021-01-17 03:09:27 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkg-config, SDL, SDL_image, SDL_ttf, SDL_gfx, flex, bison }:
|
2016-06-28 22:25:48 +02:00
|
|
|
|
2016-08-27 23:57:49 +02:00
|
|
|
let
|
|
|
|
makeSDLFlags = map (p: "-I${lib.getDev p}/include/SDL");
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xsw";
|
2016-06-28 22:25:48 +02:00
|
|
|
version = "0.1.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andrenho";
|
|
|
|
repo = "xsw";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "092vp61ngd2vscsvyisi7dv6qrk5m1i81gg19hyfl5qvjq5p0p8g";
|
|
|
|
};
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ pkg-config flex bison ];
|
2016-08-27 23:57:49 +02:00
|
|
|
|
2017-09-05 23:25:26 +02:00
|
|
|
buildInputs = [ SDL SDL_image SDL_ttf SDL_gfx ];
|
2016-08-27 23:57:49 +02:00
|
|
|
|
2019-10-30 12:34:47 +01:00
|
|
|
NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ SDL SDL_image SDL_ttf SDL_gfx ]);
|
2016-06-28 22:25:48 +02:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./parse.patch # Fixes compilation error by avoiding redundant definitions.
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-06-28 22:25:48 +02:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "A slide show presentation tool";
|
|
|
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.vrthra ];
|
|
|
|
};
|
|
|
|
}
|