tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
matrix-brandy: add darwin support
Raf Gemmail
8 months ago
0b4d19cc
0e1d8e94
+21
-1
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
ma
matrix-brandy
no-lrt.patch
package.nix
+13
pkgs/by-name/ma/matrix-brandy/no-lrt.patch
···
1
1
+
diff --git a/makefile b/makefile
2
2
+
index d89cee1..37c1ac5 100644
3
3
+
--- a/makefile
4
4
+
+++ b/makefile
5
5
+
@@ -13,7 +13,7 @@ CFLAGS = -O3 -fPIE $(shell sdl-config --cflags) -DUSE_SDL -DDEFAULT_IGNORE -Wall
6
6
+
7
7
+
LDFLAGS +=
8
8
+
9
9
+
-LIBS = -lm $(shell sdl-config --libs) -ldl -pthread -lrt -lX11
10
10
+
+LIBS = -lm $(shell sdl-config --libs) -ldl -pthread -lX11
11
11
+
12
12
+
SRCDIR = src
13
13
+
+8
-1
pkgs/by-name/ma/matrix-brandy/package.nix
···
18
18
hash = "sha256-sMgYgV4/vV1x5xSICXRpW6K8uCdVlJrS7iEg6XzQRo8=";
19
19
};
20
20
21
21
+
patches = lib.optionals stdenv.isDarwin [ ./no-lrt.patch ];
22
22
+
23
23
+
makeFlags = lib.optionals stdenv.isDarwin [
24
24
+
"CC=cc"
25
25
+
"LD=clang"
26
26
+
];
27
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
38
-
platforms = platforms.linux;
45
45
+
platforms = platforms.unix;
39
46
maintainers = with maintainers; [ fiq ];
40
47
};
41
48
}