1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/pkgs/games/zaz/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.2 KiB
Nix
Raw Normal View History

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