nixpkgs/pkgs/games/zaz/default.nix

59 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
2019-07-02 21:51:56 +00:00
, fetchurl
, pkg-config
2019-07-02 21:51:56 +00:00
, SDL
, SDL_image
, mesa
, libtheora
, libvorbis
, libogg
, ftgl
, freetype
}:
stdenv.mkDerivation rec {
pname = "zaz";
2021-03-25 10:56:25 +00:00
version = "1.0.1";
2019-07-02 21:51:56 +00:00
src = fetchurl {
2021-03-25 10:56:25 +00:00
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
sha256 = "1r3bmwny05zzmdalxm5ah2rray0nnsg1w00r30p47q6x2lpwj8ml";
2019-07-02 21:51:56 +00:00
};
nativeBuildInputs = [
pkg-config
2019-07-02 21:51:56 +00:00
];
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 lib; {
2019-07-02 21:51:56 +00:00
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;
};
}