Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 35 lines 894 B view raw
1{ stdenv, lib, fetchFromGitHub, pkg-config, SDL, SDL_image, SDL_ttf, SDL_gfx, flex, bison }: 2 3let 4 makeSDLFlags = map (p: "-I${lib.getDev p}/include/SDL"); 5 6in stdenv.mkDerivation rec { 7 pname = "xsw"; 8 version = "0.1.2"; 9 10 src = fetchFromGitHub { 11 owner = "andrenho"; 12 repo = "xsw"; 13 rev = version; 14 sha256 = "092vp61ngd2vscsvyisi7dv6qrk5m1i81gg19hyfl5qvjq5p0p8g"; 15 }; 16 17 nativeBuildInputs = [ pkg-config flex bison ]; 18 19 buildInputs = [ SDL SDL_image SDL_ttf SDL_gfx ]; 20 21 env.NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ SDL SDL_image SDL_ttf SDL_gfx ]); 22 23 patches = [ 24 ./parse.patch # Fixes compilation error by avoiding redundant definitions. 25 ]; 26 27 meta = with lib; { 28 inherit (src.meta) homepage; 29 description = "A slide show presentation tool"; 30 31 platforms = platforms.unix; 32 license = licenses.gpl3; 33 maintainers = [ maintainers.vrthra ]; 34 }; 35}