bb: fix build on aarch64-darwin

This commit is contained in:
Weijia Wang 2022-11-03 12:11:45 +01:00
parent 3db0fa106d
commit 339f4e5579

View file

@ -18,10 +18,14 @@ stdenv.mkDerivation rec {
sed -i -e '/^#include <malloc.h>$/d' *.c
'';
# error: 'regparm' is not valid on this platform
NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64)
"-D__STRICT_ANSI__";
meta = with lib; {
homepage = "http://aa-project.sourceforge.net/bb";
description = "AA-lib demo";
license = licenses.gpl2;
license = licenses.gpl2Plus;
maintainers = [ maintainers.rnhmjoj ];
platforms = platforms.unix;
};