31 , withNvidiaCg ? false
37 common = { version, hash, imguiVersion, imguiHash }:
39 imgui.src = fetchFromGitHub {
42 rev = "v${imguiVersion}";
50 src = fetchFromGitHub {
59 cp -R ${imgui.src} build/imgui-${imguiVersion}
60 chmod -R u+w build/imgui-${imguiVersion}
77 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
91 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
92 darwin.apple_sdk.frameworks.Cocoa
93 ] ++ lib.optionals withNvidiaCg [
98 (lib.cmakeBool "OGRE_BUILD_DEPENDENCIES" false)
99 (lib.cmakeBool "OGRE_BUILD_SAMPLES" withSamples)
100 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
101 (lib.cmakeBool "OGRE_BUILD_LIBS_AS_FRAMEWORKS" false)
105 description = "3D Object-Oriented Graphics Rendering Engine";
106 homepage = "https://www.ogre3d.org/";
107 maintainers = with lib.maintainers; [ raskin wegank ];
108 platforms = lib.platforms.unix;
109 license = lib.licenses.mit;
116 hash = "sha256-rr8tetBfFdZPVvN3fYRWltf8/e6oLcLL0uhHKWanuVA=";
117 # https://github.com/OGRECave/ogre/blob/v14.3.1/Components/Overlay/CMakeLists.txt
118 imguiVersion = "1.91.2";
119 imguiHash = "sha256-B7XXQNuEPcT1ID5nMYbAV+aNCG9gIrC9J7BLnYB8yjI=";
124 hash = "sha256-8VQqePrvf/fleHijVIqWWfwOusGjVR40IIJ13o+HwaE=";
125 # https://github.com/OGRECave/ogre/blob/v13.6.5/Components/Overlay/CMakeLists.txt
126 imguiVersion = "1.87";
127 imguiHash = "sha256-H5rqXZFw+2PfVMsYvAK+K+pxxI8HnUC0GlPhooWgEYM=";