nixpkgs/pkgs/applications/misc/bb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
814 B
Nix
Raw Normal View History

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