2018-02-24 14:12:44 +01:00
|
|
|
{ stdenv, fetchzip, libGLU_combined, unzip, libXrandr, libX11, libXxf86vm }:
|
2012-02-19 14:15:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-08-29 21:06:49 +02:00
|
|
|
name = "irrlicht-${version}";
|
|
|
|
version = "1.8.4";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/irrlicht/${name}.zip";
|
|
|
|
sha256 = "02sq067fn4xpf0lcyb4vqxmm43qg2nxx770bgrl799yymqbvih5f";
|
2012-02-19 14:15:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd source/Irrlicht
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2017-05-29 19:31:08 +02:00
|
|
|
make sharedlib NDEBUG=1 "LDFLAGS=-lX11 -lGL -lXxf86vm"
|
2012-02-19 14:15:50 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
sed -i s,/usr/local/lib,$out/lib, Makefile
|
|
|
|
mkdir -p $out/lib
|
|
|
|
'';
|
|
|
|
|
2018-02-24 14:12:44 +01:00
|
|
|
buildInputs = [ unzip libGLU_combined libXrandr libX11 libXxf86vm ];
|
2012-02-19 14:15:50 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://irrlicht.sourceforge.net/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.zlib;
|
2012-02-19 14:15:50 +01:00
|
|
|
description = "Open source high performance realtime 3D engine written in C++";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-02-19 14:15:50 +01:00
|
|
|
};
|
|
|
|
}
|