1 { stdenv, lib, fetchurl, darwin, aalib, ncurses, xorg, libmikmod }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/aa-project/bb/${version}/${pname}-${version}.tar.gz";
9 sha256 = "1i411glxh7g4pfg4gw826lpwngi89yrbmxac8jmnsfvrfb48hgbr";
13 aalib ncurses libmikmod
14 xorg.libXau xorg.libXdmcp xorg.libX11
15 ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreAudio;
17 postPatch = lib.optionalString stdenv.isDarwin ''
18 sed -i -e '/^#include <malloc.h>$/d' *.c
21 # error: 'regparm' is not valid on this platform
22 env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64)
26 homepage = "http://aa-project.sourceforge.net/bb";
27 description = "AA-lib demo";
28 license = licenses.gpl2Plus;
29 maintainers = [ maintainers.rnhmjoj ];
30 platforms = platforms.unix;