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

33 lines
1,019 B
Nix
Raw Normal View History

2016-04-11 13:38:54 +02:00
{ stdenv, fetchFromGitHub, libX11, unzip, cmake, ois, freetype, libuuid,
2019-11-10 17:44:34 +01:00
boost, pkgconfig, withOgre ? false, ogre ? null, libGL, libGLU ? null } :
let
renderSystem = if withOgre then "3" else "4";
in stdenv.mkDerivation rec {
pname = "mygui";
2020-02-20 13:06:11 +01:00
version = "3.4.0";
2016-04-11 13:38:54 +02:00
2015-09-26 20:52:33 +02:00
src = fetchFromGitHub {
owner = "MyGUI";
repo = "mygui";
rev = "MyGUI${version}";
2020-02-20 13:06:11 +01:00
sha256 = "0a4zi8w18pjj813n7kmxldl1d9r1jp0iyhkw7pbqgl8f7qaq994w";
};
enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig ];
2019-11-10 17:44:34 +01:00
buildInputs = [ libX11 unzip cmake ois freetype libuuid boost ]
++ (if withOgre then [ ogre ] else [libGL libGLU]);
2016-04-11 13:38:54 +02:00
# Tools are disabled due to compilation failures.
cmakeFlags = [ "-DMYGUI_BUILD_TOOLS=OFF" "-DMYGUI_BUILD_DEMOS=OFF" "-DMYGUI_RENDERSYSTEM=${renderSystem}" ];
2016-04-11 13:38:54 +02:00
meta = with stdenv.lib; {
homepage = "http://mygui.info/";
description = "Library for creating GUIs for games and 3D applications";
license = licenses.lgpl3Plus;
platforms = platforms.linux;
};
}