nixpkgs/pkgs/development/libraries/irrlicht/default.nix

35 lines
871 B
Nix
Raw Normal View History

2019-11-10 16:44:34 +00:00
{ stdenv, fetchzip, libGLU, libGL, unzip, libXrandr, libX11, libXxf86vm }:
stdenv.mkDerivation rec {
pname = "irrlicht";
2017-08-29 19:06:49 +00:00
version = "1.8.4";
src = fetchzip {
url = "mirror://sourceforge/irrlicht/${pname}-${version}.zip";
2017-08-29 19:06:49 +00:00
sha256 = "02sq067fn4xpf0lcyb4vqxmm43qg2nxx770bgrl799yymqbvih5f";
};
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
'';
2019-11-10 16:44:34 +00:00
buildInputs = [ unzip libGLU libGL libXrandr libX11 libXxf86vm ];
meta = {
homepage = http://irrlicht.sourceforge.net/;
license = stdenv.lib.licenses.zlib;
description = "Open source high performance realtime 3D engine written in C++";
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
};
}