nixpkgs/pkgs/development/libraries/cegui/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.1 KiB
Nix
Raw Normal View History

2023-07-20 07:53:13 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, ogre
, freetype
, boost
, expat
, darwin
, libiconv
, unstableGitUpdater
}:
2016-04-23 02:34:16 +00:00
2023-07-20 07:53:13 +00:00
stdenv.mkDerivation {
pname = "cegui";
2023-07-20 07:53:13 +00:00
version = "unstable-2023-03-18";
2016-04-23 02:34:16 +00:00
2023-07-20 07:53:13 +00:00
src = fetchFromGitHub {
owner = "paroj";
repo = "cegui";
rev = "186ce900e293b98f2721c11930248a8de54aa338";
hash = "sha256-RJ4MnxklcuxC+ZYEbfma5RDc2aeJ95LuTwNk+FnEhdo=";
2016-04-23 02:34:16 +00:00
};
2023-07-20 07:53:13 +00:00
strictDeps = true;
2023-01-02 17:37:49 +00:00
2023-07-20 07:53:13 +00:00
nativeBuildInputs = [
cmake
];
buildInputs = [
ogre
freetype
boost
expat
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Cocoa
darwin.apple_sdk.frameworks.Foundation
libiconv
];
cmakeFlags = [
"-DCEGUI_OPTION_DEFAULT_IMAGECODEC=OgreRenderer-0"
] ++ lib.optionals (stdenv.hostPlatform.isDarwin) [
"-DCMAKE_OSX_ARCHITECTURES=${stdenv.hostPlatform.darwinArch}"
];
passthru.updateScript = unstableGitUpdater {
branch = "v0";
};
2016-04-23 02:34:16 +00:00
meta = with lib; {
homepage = "http://cegui.org.uk/";
2016-04-23 02:34:16 +00:00
description = "C++ Library for creating GUIs";
license = licenses.mit;
2023-01-02 17:37:49 +00:00
platforms = platforms.unix;
2016-04-23 02:34:16 +00:00
};
}