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
backend =
21
if (stdenv.isx86_32 || stdenv.isx86_64) then "OpenGL" else "GLES";
22
0
0
0
0
23
in
24
stdenv.mkDerivation rec {
25
pname = "gemrb";
···
39
libGL
40
libiconv
41
libpng
42
-
libvlc
43
libvorbis
44
openal
45
python2
46
zlib
47
-
];
0
48
49
nativeBuildInputs = [ cmake ];
50
51
-
LIBVLC_INCLUDE_PATH = "${lib.getDev libvlc}/include";
52
-
LIBVLC_LIBRARY_PATH = "${lib.getLib libvlc}/lib";
0
53
54
cmakeFlags = [
0
0
0
55
# use the Mesa drivers for video on ARM (harmless on x86)
56
"-DDISABLE_VIDEOCORE=ON"
57
"-DLAYOUT=opt"
···
20
backend =
21
if (stdenv.isx86_32 || stdenv.isx86_64) then "OpenGL" else "GLES";
22
23
+
withVLC = stdenv.isDarwin;
24
+
25
+
inherit (lib) optional optionalString;
26
+
27
in
28
stdenv.mkDerivation rec {
29
pname = "gemrb";
···
43
libGL
44
libiconv
45
libpng
0
46
libvorbis
47
openal
48
python2
49
zlib
50
+
]
51
+
++ optional withVLC libvlc;
52
53
nativeBuildInputs = [ cmake ];
54
55
+
# libvlc isn't being detected properly as of 0.9.0, so set it
56
+
LIBVLC_INCLUDE_PATH = optionalString withVLC "${lib.getDev libvlc}/include";
57
+
LIBVLC_LIBRARY_PATH = optionalString withVLC "${lib.getLib libvlc}/lib";
58
59
cmakeFlags = [
60
+
"-DDATA_DIR=${placeholder "out"}/share/gemrb"
61
+
"-DEXAMPLE_CONF_DIR=${placeholder "out"}/share/doc/gemrb/examples"
62
+
"-DSYSCONF_DIR=/etc"
63
# use the Mesa drivers for video on ARM (harmless on x86)
64
"-DDISABLE_VIDEOCORE=ON"
65
"-DLAYOUT=opt"