1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00
nixpkgs/pkgs/applications/misc/bb/default.nix
Alyssa Ross c49aa0d0df
bb: add Darwin compatibility
It even has working sound, unlike on Linux!
2018-10-29 10:53:24 +00:00

29 lines
813 B
Nix

{ stdenv, lib, fetchurl, darwin, aalib, ncurses, xorg, libmikmod }:
stdenv.mkDerivation rec {
name = "bb-${version}";
version = "1.3rc1";
src = fetchurl {
url = "mirror://sourceforge/aa-project/bb/${version}/${name}.tar.gz";
sha256 = "1i411glxh7g4pfg4gw826lpwngi89yrbmxac8jmnsfvrfb48hgbr";
};
buildInputs = [
aalib ncurses libmikmod
xorg.libXau xorg.libXdmcp xorg.libX11
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreAudio;
postPatch = lib.optionalString stdenv.isDarwin ''
sed -i -e '/^#include <malloc.h>$/d' *.c
'';
meta = with lib; {
homepage = http://aa-project.sourceforge.net/bb;
description = "AA-lib demo";
license = licenses.gpl2;
maintainers = [ maintainers.rnhmjoj ];
platforms = platforms.unix;
};
}