1{ lib, stdenv, fetchurl, cmake, ogre, freetype, boost, expat, libiconv }:
2
3stdenv.mkDerivation rec {
4 pname = "cegui";
5 version = "0.8.7";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/crayzedsgui/${pname}-${version}.tar.bz2";
9 sha256 = "067562s71kfsnbp2zb2bmq8zj3jk96g5a4rcc5qc3n8nfyayhldk";
10 };
11
12 nativeBuildInputs = [ cmake ];
13 buildInputs = [ ogre freetype boost expat ]
14 ++ lib.optionals stdenv.isDarwin [ libiconv ];
15
16 cmakeFlags = lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-DCMAKE_OSX_ARCHITECTURES=arm64";
17
18 meta = with lib; {
19 homepage = "http://cegui.org.uk/";
20 description = "C++ Library for creating GUIs";
21 license = licenses.mit;
22 platforms = platforms.unix;
23 };
24}