1 { lib, stdenv, fetchzip, libGLU, libGL, fetchFromGitHub, cmake, Cocoa, OpenGL, IOKit }:
4 common = import ./common.nix { inherit fetchzip; };
7 stdenv.mkDerivation rec {
8 pname = "irrlicht-mac";
9 version = common.version;
11 src = fetchFromGitHub {
13 repo = "IrrlichtCMake";
14 rev = "523a5e6ef84be67c3014f7b822b97acfced536ce";
15 sha256 = "10ahnry2zl64wphs233gxhvs6c0345pyf5nwa29mc6yn49x7bidi";
19 cp -r ${common.src}/* $sourceRoot/
20 chmod -R 777 $sourceRoot
23 patches = [ ./mac_device.patch ];
27 "-DIRRLICHT_STATIC_LIBRARY=ON"
28 "-DIRRLICHT_BUILD_EXAMPLES=OFF"
29 "-DIRRLICHT_INSTALL_MEDIA_FILES=OFF"
30 "-DIRRLICHT_ENABLE_X11_SUPPORT=OFF"
31 "-DIRRLICHT_BUILD_TOOLS=OFF"
34 nativeBuildInputs = [ cmake ];
35 buildInputs = [ OpenGL Cocoa IOKit ];
38 homepage = "https://irrlicht.sourceforge.net/";
39 license = lib.licenses.zlib;
40 description = "Open source high performance realtime 3D engine written in C++";
41 platforms = lib.platforms.darwin;