From bbfe5346659440d3869d6ace9f0fa8e55aed81bf Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Tue, 2 Jul 2019 23:51:56 +0200 Subject: zaz: init at 1.0.0 --- pkgs/games/zaz/default.nix | 58 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pkgs/games/zaz/default.nix (limited to 'pkgs/games/zaz') diff --git a/pkgs/games/zaz/default.nix b/pkgs/games/zaz/default.nix new file mode 100644 index 00000000000..9d42cfd6896 --- /dev/null +++ b/pkgs/games/zaz/default.nix @@ -0,0 +1,58 @@ +{ stdenv +, fetchurl +, pkgconfig +, SDL +, SDL_image +, mesa +, libtheora +, libvorbis +, libogg +, ftgl +, freetype +}: + +stdenv.mkDerivation rec { + pname = "zaz"; + version = "1.0.0"; + + src = fetchurl { + url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2"; + sha256 = "15q3kxzl71m50byw37dshfsx5wp240ywah19ccmqmqarcldcqcp3"; + }; + + nativeBuildInputs = [ + pkgconfig + ]; + buildInputs = [ + SDL.dev + SDL_image + mesa + libtheora + libvorbis.dev + libogg + ftgl + freetype + ]; + + # Fix SDL include problems + NIX_CFLAGS_COMPILE="-I${SDL.dev}/include/SDL -I${SDL_image}/include/SDL"; + # Fix linking errors + makeFlags = [ + "ZAZ_LIBS+=-lSDL" + "ZAZ_LIBS+=-lvorbis" + "ZAZ_LIBS+=-ltheora" + "ZAZ_LIBS+=-logg" + "ZAZ_LIBS+=-ltheoraenc" + "ZAZ_LIBS+=-ltheoradec" + "ZAZ_LIBS+=-lvorbisfile" + ]; + + meta = with stdenv.lib; { + description = "A puzzle game about arranging balls in triplets, like Luxor, Zuma, or Puzzle Bobble"; + homepage = "http://zaz.sourceforge.net/"; + license = licenses.gpl3; + maintainers = with maintainers; [ fgaz ]; + platforms = platforms.all; + }; +} + -- cgit 1.4.1