2016-04-11 11:38:54 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libX11, unzip, cmake, ois, freetype, libuuid,
|
2018-02-24 13:12:44 +00:00
|
|
|
boost, pkgconfig, withOgre ? false, ogre ? null, libGLU_combined ? null } :
|
2011-03-30 22:08:33 +00:00
|
|
|
|
2016-04-11 13:52:48 +00:00
|
|
|
let
|
|
|
|
renderSystem = if withOgre then "3" else "4";
|
|
|
|
in stdenv.mkDerivation rec {
|
2015-09-26 18:52:33 +00:00
|
|
|
name = "mygui-${version}";
|
|
|
|
version = "3.2.2";
|
2016-04-11 11:38:54 +00:00
|
|
|
|
2015-09-26 18:52:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MyGUI";
|
|
|
|
repo = "mygui";
|
|
|
|
rev = "MyGUI${version}";
|
|
|
|
sha256 = "1wk7jmwm55rhlqqcyvqsxdmwvl70bysl9azh4kd9n57qlmgk3zmw";
|
2011-03-30 22:08:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-02-24 13:12:44 +00:00
|
|
|
buildInputs = [ libX11 unzip cmake ois freetype libuuid boost (if withOgre then ogre else libGLU_combined) ];
|
2016-04-11 11:38:54 +00:00
|
|
|
|
2016-04-11 13:52:48 +00:00
|
|
|
# Tools are disabled due to compilation failures.
|
|
|
|
cmakeFlags = [ "-DMYGUI_BUILD_TOOLS=OFF" "-DMYGUI_BUILD_DEMOS=OFF" "-DMYGUI_RENDERSYSTEM=${renderSystem}" ];
|
2016-04-11 11:38:54 +00:00
|
|
|
|
2016-04-11 13:52:48 +00:00
|
|
|
meta = with stdenv.lib; {
|
2011-03-30 22:08:33 +00:00
|
|
|
homepage = http://mygui.info/;
|
|
|
|
description = "Library for creating GUIs for games and 3D applications";
|
2016-04-11 13:52:48 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2011-03-30 22:08:33 +00:00
|
|
|
};
|
|
|
|
}
|