2018-10-25 00:31:17 +02:00
|
|
|
{ stdenv, lib, fetchurl, darwin, aalib, ncurses, xorg, libmikmod }:
|
2017-10-16 11:08:06 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bb";
|
2017-10-16 11:08:06 +02:00
|
|
|
version = "1.3rc1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/aa-project/bb/${version}/${pname}-${version}.tar.gz";
|
2017-10-16 11:08:06 +02:00
|
|
|
sha256 = "1i411glxh7g4pfg4gw826lpwngi89yrbmxac8jmnsfvrfb48hgbr";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
aalib ncurses libmikmod
|
|
|
|
xorg.libXau xorg.libXdmcp xorg.libX11
|
2018-10-25 00:31:17 +02:00
|
|
|
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreAudio;
|
2017-10-16 11:08:06 +02:00
|
|
|
|
2018-10-25 00:31:17 +02:00
|
|
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
sed -i -e '/^#include <malloc.h>$/d' *.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://aa-project.sourceforge.net/bb";
|
2017-10-16 11:08:06 +02:00
|
|
|
description = "AA-lib demo";
|
|
|
|
license = licenses.gpl2;
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = [ maintainers.rnhmjoj ];
|
2018-10-25 00:31:17 +02:00
|
|
|
platforms = platforms.unix;
|
2017-10-16 11:08:06 +02:00
|
|
|
};
|
|
|
|
}
|