46 imgui.src = fetchFromGitHub {
49 rev = "v${imguiVersion}";
57 src = fetchFromGitHub {
66 cp -R ${imgui.src} build/imgui-${imguiVersion}
67 chmod -R u+w build/imgui-${imguiVersion}
86 ++ lib.optionals stdenv.hostPlatform.isLinux [
101 ++ lib.optionals stdenv.hostPlatform.isDarwin [
102 darwin.apple_sdk.frameworks.Cocoa
104 ++ lib.optionals withNvidiaCg [
110 (lib.cmakeBool "OGRE_BUILD_DEPENDENCIES" false)
111 (lib.cmakeBool "OGRE_BUILD_SAMPLES" withSamples)
113 ++ lib.optionals stdenv.hostPlatform.isDarwin [
114 (lib.cmakeBool "OGRE_BUILD_LIBS_AS_FRAMEWORKS" false)
118 description = "3D Object-Oriented Graphics Rendering Engine";
119 homepage = "https://www.ogre3d.org/";
120 maintainers = with lib.maintainers; [
124 platforms = lib.platforms.unix;
125 license = lib.licenses.mit;
132 hash = "sha256-+ZWrYwgQFmL+9QA+pDQHqacJoONUDVTT+PQLmpLTChg=";
133 # https://github.com/OGRECave/ogre/blob/v14.3.3/Components/Overlay/CMakeLists.txt
134 imguiVersion = "1.91.2";
135 imguiHash = "sha256-B7XXQNuEPcT1ID5nMYbAV+aNCG9gIrC9J7BLnYB8yjI=";
140 hash = "sha256-8VQqePrvf/fleHijVIqWWfwOusGjVR40IIJ13o+HwaE=";
141 # https://github.com/OGRECave/ogre/blob/v13.6.5/Components/Overlay/CMakeLists.txt
142 imguiVersion = "1.87";
143 imguiHash = "sha256-H5rqXZFw+2PfVMsYvAK+K+pxxI8HnUC0GlPhooWgEYM=";