diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2019-07-02 23:51:56 +0200 |
---|---|---|
committer | Francesco Gazzetta <fgaz@fgaz.me> | 2019-07-02 23:51:56 +0200 |
commit | bbfe5346659440d3869d6ace9f0fa8e55aed81bf (patch) | |
tree | 9be274772f9c165de578a8465a0b2c6ef790abfb | |
parent | 5d12512b2da5501f271b5e4d7550503e0adead3a (diff) | |
download | nixpkgs-bbfe5346659440d3869d6ace9f0fa8e55aed81bf.tar nixpkgs-bbfe5346659440d3869d6ace9f0fa8e55aed81bf.tar.gz nixpkgs-bbfe5346659440d3869d6ace9f0fa8e55aed81bf.tar.bz2 nixpkgs-bbfe5346659440d3869d6ace9f0fa8e55aed81bf.tar.lz nixpkgs-bbfe5346659440d3869d6ace9f0fa8e55aed81bf.tar.xz nixpkgs-bbfe5346659440d3869d6ace9f0fa8e55aed81bf.tar.zst nixpkgs-bbfe5346659440d3869d6ace9f0fa8e55aed81bf.zip |
zaz: init at 1.0.0
-rw-r--r-- | pkgs/games/zaz/default.nix | 58 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 60 insertions, 0 deletions
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; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 001214093ee..e40cd2c981d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22154,6 +22154,8 @@ in zangband = callPackage ../games/zangband { }; + zaz = callPackage ../games/zaz { }; + zdbsp = callPackage ../games/zdoom/zdbsp.nix { }; zdoom = callPackage ../games/zdoom { }; |