cegui: add darwin support
This commit is contained in:
parent
1c80d75f31
commit
71ff0accea
1 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchurl, cmake, ogre, freetype, boost, expat }:
|
{ lib, stdenv, fetchurl, cmake, ogre, freetype, boost, expat, libiconv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cegui";
|
pname = "cegui";
|
||||||
|
@ -10,12 +10,15 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ ogre freetype boost expat ];
|
buildInputs = [ ogre freetype boost expat ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ libiconv ];
|
||||||
|
|
||||||
|
cmakeFlags = lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-DCMAKE_OSX_ARCHITECTURES=arm64";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://cegui.org.uk/";
|
homepage = "http://cegui.org.uk/";
|
||||||
description = "C++ Library for creating GUIs";
|
description = "C++ Library for creating GUIs";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue