2012-02-19 13:15:50 +00:00
|
|
|
{ fetchsvn, stdenv, mesa, unzip, libXrandr, libX11, libXxf86vm }:
|
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-17 03:48:43 +01:00
|
|
|
name = "irrlicht-${version}-svn-${revision}";
|
|
|
|
version = "1.8";
|
|
|
|
revision = "5104"; # newest revision as of 05-16-15
|
2012-02-19 13:15:50 +00:00
|
|
|
|
|
|
|
src = fetchsvn {
|
2015-05-17 03:48:43 +01:00
|
|
|
url = "https://svn.code.sf.net/p/irrlicht/code/branches/releases/${version}"; # get 1.8 release (same regardless of rev)
|
|
|
|
rev = "${revision}";
|
|
|
|
sha256 = "18xvlrjf113mphf29iy24hmrkh7xff6j9cz0chrxjqbr9xk9h1yq";
|
2012-02-19 13:15:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd source/Irrlicht
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make sharedlib NDEBUG=1
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
sed -i s,/usr/local/lib,$out/lib, Makefile
|
|
|
|
mkdir -p $out/lib
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ unzip mesa libXrandr libX11 libXxf86vm ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://irrlicht.sourceforge.net/;
|
2014-06-19 05:19:00 +01: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++";
|
|
|
|
};
|
|
|
|
}
|