3
0
Fork 0
forked from mirrors/nixpkgs

openrw: move cmake to nativeBuildInputs, fix on darwin

Darwin fix as suggested by @risicle
This commit is contained in:
Dmitry Kalinkin 2019-10-29 12:59:06 -04:00
parent 3affc7fb8f
commit ddbf53b855
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333
2 changed files with 8 additions and 4 deletions

View file

@ -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";

View file

@ -22545,7 +22545,9 @@ in
openra = openraPackages.engines.release;
openrw = callPackage ../games/openrw { };
openrw = callPackage ../games/openrw {
inherit (darwin.apple_sdk.frameworks) Cocoa OpenAL;
};
openspades = callPackage ../games/openspades {
inherit (darwin.apple_sdk.frameworks) Cocoa;