about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/cegui/default.nix
blob: cb302f3381ca0350c8bf11c721c2ab0464838234 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchurl, cmake, ogre, freetype, boost, expat, libiconv }:

stdenv.mkDerivation rec {
  pname = "cegui";
  version = "0.8.7";

  src = fetchurl {
    url = "mirror://sourceforge/crayzedsgui/${pname}-${version}.tar.bz2";
    sha256 = "067562s71kfsnbp2zb2bmq8zj3jk96g5a4rcc5qc3n8nfyayhldk";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ ogre freetype boost expat ]
    ++ lib.optionals stdenv.isDarwin [ libiconv ];

  cmakeFlags = lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-DCMAKE_OSX_ARCHITECTURES=arm64";

  meta = with lib; {
    homepage = "http://cegui.org.uk/";
    description = "C++ Library for creating GUIs";
    license = licenses.mit;
    platforms = platforms.unix;
  };
}