@@ -1,5 +1,5 @@
11{ stdenv, fetchgit, cmake, sfml, libGLU_combined, bullet, glm, libmad, xlibsWrapper, openal
2−, SDL2, boost, ffmpeg }:
2+, SDL2, boost, ffmpeg, Cocoa, OpenAL }:
33
44stdenv.mkDerivation {
55 version = "2019-10-26";
@@ -12,9 +12,11 @@ stdenv.mkDerivation {
1212 fetchSubmodules = true;
1313 };
1414
15+ nativeBuildInputs = [ cmake ];
16+
1517 buildInputs = [
16− cmake sfml libGLU_combined bullet glm libmad xlibsWrapper openal SDL2 boost ffmpeg
17− ];
18+ sfml libGLU_combined bullet glm libmad xlibsWrapper openal SDL2 boost ffmpeg
19+ ] ++ stdenv.lib.optionals stdenv.isDarwin [ OpenAL Cocoa ];
1820
1921 meta = with stdenv.lib; {
2022 description = "Unofficial open source recreation of the classic Grand Theft Auto III game executable";