cegui: add darwin support

This commit is contained in:
Weijia Wang 2023-01-02 18:37:49 +01:00
parent 1c80d75f31
commit 71ff0accea

View file

@ -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;
}; };
} }