nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at devShellTools-shell 63 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 SDL, 7 SDL_image, 8 libgbm, 9 libGL, 10 libtheora, 11 libvorbis, 12 libogg, 13 ftgl, 14 freetype, 15}: 16 17stdenv.mkDerivation (finalAttrs: { 18 pname = "zaz"; 19 version = "1.0.1"; 20 21 src = fetchurl { 22 url = "mirror://sourceforge/zaz/zaz-${finalAttrs.version}.tar.gz"; 23 sha256 = "1r3bmwny05zzmdalxm5ah2rray0nnsg1w00r30p47q6x2lpwj8ml"; 24 }; 25 26 nativeBuildInputs = [ 27 pkg-config 28 ]; 29 buildInputs = [ 30 (lib.getDev SDL) 31 SDL_image 32 libgbm 33 libGL 34 libtheora 35 libvorbis.dev 36 libogg 37 ftgl 38 freetype 39 ]; 40 41 # Fix SDL include problems 42 env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL}/include/SDL -I${SDL_image}/include/SDL"; 43 # Fix linking errors 44 makeFlags = [ 45 "ZAZ_LIBS+=-lSDL" 46 "ZAZ_LIBS+=-lvorbis" 47 "ZAZ_LIBS+=-ltheora" 48 "ZAZ_LIBS+=-logg" 49 "ZAZ_LIBS+=-ltheoraenc" 50 "ZAZ_LIBS+=-ltheoradec" 51 "ZAZ_LIBS+=-lvorbisfile" 52 ]; 53 54 meta = with lib; { 55 broken = stdenv.hostPlatform.isDarwin; 56 description = "Puzzle game about arranging balls in triplets, like Luxor, Zuma, or Puzzle Bobble"; 57 homepage = "https://zaz.sourceforge.net/"; 58 license = licenses.gpl3; 59 maintainers = with maintainers; [ fgaz ]; 60 platforms = platforms.all; 61 mainProgram = "zaz"; 62 }; 63})