try WindowSDL3

This commit is contained in:
2025-05-04 22:04:04 -05:00
parent 6f4b9b68fd
commit 853881e5e8
3 changed files with 107 additions and 9 deletions

View File

@@ -91,6 +91,41 @@
};
WindowModuleSDL = pkgs.stdenvNoCC.mkDerivation {
name = "WindowModule";
src = ./.;
nativeBuildInputs = with pkgs; [
clang
];
buildInputs = with pkgs; [
sdl3
glew
];
buildPhase = ''
clang++ \
modules/WindowModule/src/*.cpp \
-fpic -shared \
-I src -I include \
-DRENDERER_OPENGL \
-DWINDOW_SDL3 \
-DWINDOWMODULE_DYNAMIC \
-lGL -lsdl -lGLEW \
-Wall \
-o $name
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
};
WindowModule = pkgs.stdenvNoCC.mkDerivation {
name = "WindowModule";