mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
mygui: add withOgre argument
This commit is contained in:
parent
1d36e6ec07
commit
6312610911
1 changed files with 8 additions and 3 deletions
|
@ -1,9 +1,10 @@
|
|||
{stdenv, fetchFromGitHub, libX11, unzip, ogre, cmake, ois, freetype, libuuid, boost, pkgconfig}:
|
||||
{ stdenv, fetchFromGitHub, libX11, unzip, cmake, ois, freetype, libuuid,
|
||||
boost, pkgconfig, lib, withOgre ? true, ogre ? null } :
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mygui-${version}";
|
||||
version = "3.2.2";
|
||||
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MyGUI";
|
||||
repo = "mygui";
|
||||
|
@ -13,7 +14,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs = [ libX11 unzip ogre cmake ois freetype libuuid boost pkgconfig ];
|
||||
|
||||
buildInputs = [ libX11 unzip cmake ois freetype libuuid boost pkgconfig ]
|
||||
++ lib.optional withOgre [ ogre ];
|
||||
|
||||
cmakeFlags = lib.optional (! withOgre) ["-DMYGUI_RENDERSYSTEM=1" "-DMYGUI_BUILD_DEMOS=OFF" "-DMYGUI_BUILD_TOOLS=OFF" "-DMYGUI_BUILD_PLUGINS=OFF"];
|
||||
|
||||
meta = {
|
||||
homepage = http://mygui.info/;
|
||||
|
|
Loading…
Reference in a new issue