matrix-brandy: add darwin support

+21 -1
+13
pkgs/by-name/ma/matrix-brandy/no-lrt.patch
··· 1 + diff --git a/makefile b/makefile 2 + index d89cee1..37c1ac5 100644 3 + --- a/makefile 4 + +++ b/makefile 5 + @@ -13,7 +13,7 @@ CFLAGS = -O3 -fPIE $(shell sdl-config --cflags) -DUSE_SDL -DDEFAULT_IGNORE -Wall 6 + 7 + LDFLAGS += 8 + 9 + -LIBS = -lm $(shell sdl-config --libs) -ldl -pthread -lrt -lX11 10 + +LIBS = -lm $(shell sdl-config --libs) -ldl -pthread -lX11 11 + 12 + SRCDIR = src 13 +
+8 -1
pkgs/by-name/ma/matrix-brandy/package.nix
··· 18 18 hash = "sha256-sMgYgV4/vV1x5xSICXRpW6K8uCdVlJrS7iEg6XzQRo8="; 19 19 }; 20 20 21 + patches = lib.optionals stdenv.isDarwin [ ./no-lrt.patch ]; 22 + 23 + makeFlags = lib.optionals stdenv.isDarwin [ 24 + "CC=cc" 25 + "LD=clang" 26 + ]; 27 + 21 28 buildInputs = [ 22 29 libX11 23 30 SDL ··· 35 42 description = "Matrix Brandy BASIC VI for Linux, Windows, MacOSX"; 36 43 mainProgram = "brandy"; 37 44 license = licenses.gpl2Plus; 38 - platforms = platforms.linux; 45 + platforms = platforms.unix; 39 46 maintainers = with maintainers; [ fiq ]; 40 47 }; 41 48 }