2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-07-02 23:51:56 +02:00
|
|
|
, fetchurl
|
2021-01-17 06:49:22 +01:00
|
|
|
, pkg-config
|
2019-07-02 23:51:56 +02:00
|
|
|
, SDL
|
|
|
|
, SDL_image
|
|
|
|
, mesa
|
|
|
|
, libtheora
|
|
|
|
, libvorbis
|
|
|
|
, libogg
|
|
|
|
, ftgl
|
|
|
|
, freetype
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zaz";
|
2021-03-25 11:56:25 +01:00
|
|
|
version = "1.0.1";
|
2019-07-02 23:51:56 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-25 11:56:25 +01:00
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1r3bmwny05zzmdalxm5ah2rray0nnsg1w00r30p47q6x2lpwj8ml";
|
2019-07-02 23:51:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 06:49:22 +01:00
|
|
|
pkg-config
|
2019-07-02 23:51:56 +02:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2022-05-10 07:09:27 +02:00
|
|
|
(lib.getDev SDL)
|
2019-07-02 23:51:56 +02:00
|
|
|
SDL_image
|
|
|
|
mesa
|
|
|
|
libtheora
|
|
|
|
libvorbis.dev
|
|
|
|
libogg
|
|
|
|
ftgl
|
|
|
|
freetype
|
|
|
|
];
|
|
|
|
|
|
|
|
# Fix SDL include problems
|
2023-02-20 16:17:34 +01:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL}/include/SDL -I${SDL_image}/include/SDL";
|
2019-07-02 23:51:56 +02:00
|
|
|
# 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"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-05-28 15:23:50 +02:00
|
|
|
broken = stdenv.isDarwin;
|
2019-07-02 23:51:56 +02:00
|
|
|
description = "A puzzle game about arranging balls in triplets, like Luxor, Zuma, or Puzzle Bobble";
|
2023-01-21 22:41:12 +01:00
|
|
|
homepage = "https://zaz.sourceforge.net/";
|
2019-07-02 23:51:56 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.all;
|
2023-11-23 22:09:35 +01:00
|
|
|
mainProgram = "zaz";
|
2019-07-02 23:51:56 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|