2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, libGLU, libGL, unzip, libXrandr, libX11, libXxf86vm }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
common = import ./common.nix { inherit fetchzip; };
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = common.pname;
|
|
|
|
version = common.version;
|
|
|
|
|
|
|
|
src = common.src;
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -ie '/sys\/sysctl.h/d' source/Irrlicht/COSOperator.cpp
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cd source/Irrlicht
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make sharedlib NDEBUG=1 "LDFLAGS=-lX11 -lGL -lXxf86vm"
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
sed -i s,/usr/local/lib,$out/lib, Makefile
|
|
|
|
mkdir -p $out/lib
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ unzip libGLU libGL libXrandr libX11 libXxf86vm ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://irrlicht.sourceforge.net/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.zlib;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open source high performance realtime 3D engine written in C++";
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|