This commit is contained in:
Nathan McCarty 2023-02-08 23:44:28 -05:00
parent 5a76c0839e
commit 446cea1f1d
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
2 changed files with 16 additions and 5 deletions

View File

@ -30,7 +30,7 @@ with nLib; {
# JVM Development
(mkIf devel.jvm {
home.packages = with unstable; [
jdk
jdk17
gradle
kotlin
kotlin-native

View File

@ -18,14 +18,25 @@ stdenv.mkDerivation rec {
./0007-Platform-Prefer-Wayland-over-X11.patch
];
propagatedBuildInputs =
[ libGL libX11 libXrandr libXinerama libXcursor libXi libXext ];
nativeBuildInputs = [ cmake extra-cmake-modules ];
buildInputs = [ wayland wayland-protocols libxkbcommon ];
propagatedBuildInputs = [ libGL ];
nativeBuildInputs = [
cmake
extra-cmake-modules
libX11
libXrandr
libXinerama
libXcursor
libXi
libXext
];
buildInputs = [ libGL wayland wayland-protocols libxkbcommon ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DGLFW_USE_WAYLAND=ON"
"-DCMAKE_C_FLAGS=-D_GLFW_GLX_LIBRARY='\"${
lib.getLib libGL
}/lib/libGL.so.1\"'"
"-DCMAKE_C_FLAGS=-D_GLFW_EGL_LIBRARY='\"${
lib.getLib libGL
}/lib/libEGL.so.1\"'"