2019-10-22 09:48:02 +02:00
|
|
|
{ stdenv, fetchzip, libGLU, libGL, unzip, fetchFromGitHub, cmake, Cocoa, OpenGL, IOKit }:
|
|
|
|
|
|
|
|
let
|
2020-02-26 13:44:13 +01:00
|
|
|
common = import ./common.nix { inherit fetchzip; };
|
2019-10-22 09:48:02 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "irrlicht-mac";
|
2020-02-26 13:44:13 +01:00
|
|
|
version = common.version;
|
2019-10-22 09:48:02 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "quiark";
|
|
|
|
repo = "IrrlichtCMake";
|
|
|
|
rev = "523a5e6ef84be67c3014f7b822b97acfced536ce";
|
|
|
|
sha256 = "10ahnry2zl64wphs233gxhvs6c0345pyf5nwa29mc6yn49x7bidi";
|
|
|
|
};
|
|
|
|
|
|
|
|
postUnpack = ''
|
2020-02-26 13:44:13 +01:00
|
|
|
cp -r ${common.src}/* $sourceRoot/
|
2019-10-22 09:48:02 +02:00
|
|
|
chmod -R 777 $sourceRoot
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./mac_device.patch ];
|
|
|
|
dontFixCmake = true;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DIRRLICHT_STATIC_LIBRARY=ON"
|
|
|
|
"-DIRRLICHT_BUILD_EXAMPLES=OFF"
|
|
|
|
"-DIRRLICHT_INSTALL_MEDIA_FILES=OFF"
|
|
|
|
"-DIRRLICHT_ENABLE_X11_SUPPORT=OFF"
|
|
|
|
"-DIRRLICHT_BUILD_TOOLS=OFF"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ unzip OpenGL Cocoa IOKit ];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://irrlicht.sourceforge.net/";
|
2019-10-22 09:48:02 +02:00
|
|
|
license = stdenv.lib.licenses.zlib;
|
|
|
|
description = "Open source high performance realtime 3D engine written in C++";
|
|
|
|
platforms = stdenv.lib.platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|