mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 17:39:34 +00:00
bb: add Darwin compatibility
It even has working sound, unlike on Linux!
This commit is contained in:
parent
4807e04283
commit
c49aa0d0df
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, aalib, ncurses, xorg, libmikmod }:
|
{ stdenv, lib, fetchurl, darwin, aalib, ncurses, xorg, libmikmod }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "bb-${version}";
|
name = "bb-${version}";
|
||||||
|
@ -12,13 +12,17 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
aalib ncurses libmikmod
|
aalib ncurses libmikmod
|
||||||
xorg.libXau xorg.libXdmcp xorg.libX11
|
xorg.libXau xorg.libXdmcp xorg.libX11
|
||||||
];
|
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreAudio;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||||
|
sed -i -e '/^#include <malloc.h>$/d' *.c
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
homepage = http://aa-project.sourceforge.net/bb;
|
homepage = http://aa-project.sourceforge.net/bb;
|
||||||
description = "AA-lib demo";
|
description = "AA-lib demo";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = [ maintainers.rnhmjoj ];
|
maintainers = [ maintainers.rnhmjoj ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue