{ inputs, ... }: { perSystem = { system, pkgs, self', ... }: { packages.ImguiModule = pkgs.stdenvNoCC.mkDerivation { name = "ImguiModule"; src = ./.; imgui = inputs.imgui; nativeBuildInputs = with pkgs; [ clang ]; buildInputs = with pkgs; [ glfw glew ]; buildPhase = '' clang++ \ modules/ImguiModule/*.cpp \ modules/WindowModule/*.cpp \ $imgui/backends/imgui_impl_glfw.cpp \ $imgui/backends/imgui_impl_opengl3.cpp \ $imgui/misc/cpp/*.cpp \ $imgui/*.cpp \ -DRENDERER=1 \ -DWINDOW=1 \ -DIMGUIMODULE_DYNAMIC \ -DCUSTOMFONT=${pkgs.fira-code}/share/fonts/truetype/FiraCode-VF.ttf \ -fpic -shared \ -I include -I $imgui -I . \ -lGL -lglfw -lGLEW \ -Wall \ -o $name -DIMGUI_IMPL_GLFW_DISABLE_X11 ''; installPhase = '' mkdir -p $out/bin cp $name $out/bin ''; }; }; }