tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gemrb: vlc is only needed on mac
Peter Hoeg
4 years ago
14ec3c0a
b99a500a
+12
-4
1 changed file
expand all
collapse all
unified
split
pkgs
games
gemrb
default.nix
+12
-4
pkgs/games/gemrb/default.nix
···
20
20
backend =
21
21
if (stdenv.isx86_32 || stdenv.isx86_64) then "OpenGL" else "GLES";
22
22
23
23
+
withVLC = stdenv.isDarwin;
24
24
+
25
25
+
inherit (lib) optional optionalString;
26
26
+
23
27
in
24
28
stdenv.mkDerivation rec {
25
29
pname = "gemrb";
···
39
43
libGL
40
44
libiconv
41
45
libpng
42
42
-
libvlc
43
46
libvorbis
44
47
openal
45
48
python2
46
49
zlib
47
47
-
];
50
50
+
]
51
51
+
++ optional withVLC libvlc;
48
52
49
53
nativeBuildInputs = [ cmake ];
50
54
51
51
-
LIBVLC_INCLUDE_PATH = "${lib.getDev libvlc}/include";
52
52
-
LIBVLC_LIBRARY_PATH = "${lib.getLib libvlc}/lib";
55
55
+
# libvlc isn't being detected properly as of 0.9.0, so set it
56
56
+
LIBVLC_INCLUDE_PATH = optionalString withVLC "${lib.getDev libvlc}/include";
57
57
+
LIBVLC_LIBRARY_PATH = optionalString withVLC "${lib.getLib libvlc}/lib";
53
58
54
59
cmakeFlags = [
60
60
+
"-DDATA_DIR=${placeholder "out"}/share/gemrb"
61
61
+
"-DEXAMPLE_CONF_DIR=${placeholder "out"}/share/doc/gemrb/examples"
62
62
+
"-DSYSCONF_DIR=/etc"
55
63
# use the Mesa drivers for video on ARM (harmless on x86)
56
64
"-DDISABLE_VIDEOCORE=ON"
57
65
"-DLAYOUT=opt"