2019-11-10 16:44:34 +00:00
|
|
|
{ stdenv, fetchzip, libGLU, libGL, unzip, libXrandr, libX11, libXxf86vm }:
|
2012-02-19 13:15:50 +00:00
|
|
|
|
2020-02-26 12:44:13 +00:00
|
|
|
let
|
|
|
|
common = import ./common.nix { inherit fetchzip; };
|
|
|
|
in
|
2012-02-19 13:15:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-02-26 12:44:13 +00:00
|
|
|
pname = common.pname;
|
|
|
|
version = common.version;
|
2017-08-29 19:06:49 +00:00
|
|
|
|
2020-02-26 12:44:13 +00:00
|
|
|
src = common.src;
|
2012-02-19 13:15:50 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd source/Irrlicht
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2017-05-29 17:31:08 +00:00
|
|
|
make sharedlib NDEBUG=1 "LDFLAGS=-lX11 -lGL -lXxf86vm"
|
2012-02-19 13:15:50 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
sed -i s,/usr/local/lib,$out/lib, Makefile
|
|
|
|
mkdir -p $out/lib
|
|
|
|
'';
|
|
|
|
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ unzip libGLU libGL libXrandr libX11 libXxf86vm ];
|
2012-02-19 13:15:50 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://irrlicht.sourceforge.net/";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.zlib;
|
2012-02-19 13:15:50 +00:00
|
|
|
description = "Open source high performance realtime 3D engine written in C++";
|
2019-10-22 07:48:02 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
2012-02-19 13:15:50 +00:00
|
|
|
};
|
|
|
|
}
|