{ stdenv , SDL , SDL_ttf , SDL_image , SDL_gfx , SDL_mixer }: stdenv.mkDerivation { name = "RCade"; src = ./.; buildInputs = [ SDL SDL_ttf SDL_image SDL_gfx SDL_mixer ]; preConfigure = '' export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL}/include/SDL" ''; installPhase = '' mkdir -p $out/bin install -m 555 Game $out/bin/RCade ''; }