mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
25 lines
721 B
Nix
25 lines
721 B
Nix
{ 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;
|
|
};
|
|
}
|