46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
32 lines
1009 B
Nix
32 lines
1009 B
Nix
{ stdenv, fetchFromGitHub, libX11, unzip, cmake, ois, freetype, libuuid,
|
|
boost, pkgconfig, withOgre ? false, ogre ? null, libGLU_combined ? null } :
|
|
|
|
let
|
|
renderSystem = if withOgre then "3" else "4";
|
|
in stdenv.mkDerivation rec {
|
|
pname = "mygui";
|
|
version = "3.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MyGUI";
|
|
repo = "mygui";
|
|
rev = "MyGUI${version}";
|
|
sha256 = "1wk7jmwm55rhlqqcyvqsxdmwvl70bysl9azh4kd9n57qlmgk3zmw";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libX11 unzip cmake ois freetype libuuid boost (if withOgre then ogre else libGLU_combined) ];
|
|
|
|
# Tools are disabled due to compilation failures.
|
|
cmakeFlags = [ "-DMYGUI_BUILD_TOOLS=OFF" "-DMYGUI_BUILD_DEMOS=OFF" "-DMYGUI_RENDERSYSTEM=${renderSystem}" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://mygui.info/;
|
|
description = "Library for creating GUIs for games and 3D applications";
|
|
license = licenses.lgpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|