about summary refs log tree commit diff
path: root/pkgs/games/openrw
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-10-29 12:59:06 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-10-29 14:08:29 -0400
commitddbf53b855e4355f2f933898dad910dca0c15ca8 (patch)
treefa94414e197bd80c1517ccdac57d500bd21a4fe6 /pkgs/games/openrw
parent3affc7fb8fb0226ab314342ecc2986c35f0ce0e2 (diff)
downloadnixlib-ddbf53b855e4355f2f933898dad910dca0c15ca8.tar
nixlib-ddbf53b855e4355f2f933898dad910dca0c15ca8.tar.gz
nixlib-ddbf53b855e4355f2f933898dad910dca0c15ca8.tar.bz2
nixlib-ddbf53b855e4355f2f933898dad910dca0c15ca8.tar.lz
nixlib-ddbf53b855e4355f2f933898dad910dca0c15ca8.tar.xz
nixlib-ddbf53b855e4355f2f933898dad910dca0c15ca8.tar.zst
nixlib-ddbf53b855e4355f2f933898dad910dca0c15ca8.zip
openrw: move cmake to nativeBuildInputs, fix on darwin
Darwin fix as suggested by @risicle
Diffstat (limited to 'pkgs/games/openrw')
-rw-r--r--pkgs/games/openrw/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/games/openrw/default.nix b/pkgs/games/openrw/default.nix
index eae29722b6be..368fba1499f6 100644
--- a/pkgs/games/openrw/default.nix
+++ b/pkgs/games/openrw/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchgit, cmake, sfml, libGLU_combined, bullet, glm, libmad, xlibsWrapper, openal
-, SDL2, boost, ffmpeg }:
+, SDL2, boost, ffmpeg, Cocoa, OpenAL }:
 
 stdenv.mkDerivation {
   version = "2019-10-26";
@@ -12,9 +12,11 @@ stdenv.mkDerivation {
     fetchSubmodules = true;
   };
 
+  nativeBuildInputs = [ cmake ];
+
   buildInputs = [
-    cmake sfml libGLU_combined bullet glm libmad xlibsWrapper openal SDL2 boost ffmpeg
-  ];
+    sfml libGLU_combined bullet glm libmad xlibsWrapper openal SDL2 boost ffmpeg
+  ] ++ stdenv.lib.optionals stdenv.isDarwin [ OpenAL Cocoa ];
 
   meta = with stdenv.lib; {
     description = "Unofficial open source recreation of the classic Grand Theft Auto III game executable";