14 common = import ./common.nix { inherit fetchzip; };
17 stdenv.mkDerivation rec {
19 version = common.version;
25 sed -ie '/sys\/sysctl.h/d' source/Irrlicht/COSOperator.cpp
27 + lib.optionalString stdenv.hostPlatform.isAarch64 ''
28 substituteInPlace source/Irrlicht/Makefile \
29 --replace "-DIRRLICHT_EXPORTS=1" "-DIRRLICHT_EXPORTS=1 -DPNG_ARM_NEON_OPT=0"
37 makeFlagsArray+=(sharedlib NDEBUG=1 LDFLAGS="-lX11 -lGL -lXxf86vm")
40 enableParallelBuilding = true;
43 sed -i s,/usr/local/lib,$out/lib, Makefile
53 ] ++ lib.optional stdenv.hostPlatform.isAarch64 zlib;
56 homepage = "https://irrlicht.sourceforge.io/";
57 license = lib.licenses.zlib;
58 description = "Open source high performance realtime 3D engine written in C++";
59 platforms = lib.platforms.linux ++ lib.platforms.darwin;