mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-26 10:30:32 +00:00
matrix-brandy: update from 1.23.3 to 1.23.5, add darwin support (#410681)
This commit is contained in:
13
pkgs/by-name/ma/matrix-brandy/no-lrt.patch
Normal file
13
pkgs/by-name/ma/matrix-brandy/no-lrt.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/makefile b/makefile
|
||||
index d89cee1..37c1ac5 100644
|
||||
--- a/makefile
|
||||
+++ b/makefile
|
||||
@@ -13,7 +13,7 @@ CFLAGS = -O3 -fPIE $(shell sdl-config --cflags) -DUSE_SDL -DDEFAULT_IGNORE -Wall
|
||||
|
||||
LDFLAGS +=
|
||||
|
||||
-LIBS = -lm $(shell sdl-config --libs) -ldl -pthread -lrt -lX11
|
||||
+LIBS = -lm $(shell sdl-config --libs) -ldl -pthread -lX11
|
||||
|
||||
SRCDIR = src
|
||||
|
||||
@@ -3,20 +3,28 @@
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
libX11,
|
||||
nix-update-script,
|
||||
SDL,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "matrix-brandy";
|
||||
version = "1.23.3";
|
||||
version = "1.23.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stardot";
|
||||
repo = "MatrixBrandy";
|
||||
rev = "V${version}";
|
||||
hash = "sha256-jw5SxCQ2flvCjO/JO3BHpnpt31wBsBxDkVH7uwVxTS0=";
|
||||
hash = "sha256-sMgYgV4/vV1x5xSICXRpW6K8uCdVlJrS7iEg6XzQRo8=";
|
||||
};
|
||||
|
||||
patches = lib.optionals stdenv.isDarwin [ ./no-lrt.patch ];
|
||||
|
||||
makeFlags = lib.optionals stdenv.isDarwin [
|
||||
"CC=cc"
|
||||
"LD=clang"
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libX11
|
||||
SDL
|
||||
@@ -27,12 +35,14 @@ stdenv.mkDerivation rec {
|
||||
cp brandy $out/bin
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://brandy.matrixnetwork.co.uk/";
|
||||
description = "Matrix Brandy BASIC VI for Linux, Windows, MacOSX";
|
||||
mainProgram = "brandy";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ fiq ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user