X11 libraries

This commit is contained in:
Tobias Berger 2024-04-09 15:22:17 +02:00
parent eeac46f6ab
commit b931079a71
Signed by: toby
GPG key ID: 2D05EFAB764D6A88
2 changed files with 10 additions and 0 deletions

View file

@ -8,6 +8,8 @@ let
libGLU
libGL
libxkbcommon
xorg.libX11
xorg.libXcursor
wayland
];
in
@ -28,6 +30,8 @@ pkgs.rustPlatform.buildRustPackage {
patchelf --add-needed libwayland-client.so target/${pkgs.stdenv.targetPlatform.config}/release/ants
patchelf --add-needed libGLU.so target/${pkgs.stdenv.targetPlatform.config}/release/ants
patchelf --add-needed libEGL.so target/${pkgs.stdenv.targetPlatform.config}/release/ants
patchelf --add-needed libX11.so target/${pkgs.stdenv.targetPlatform.config}/release/ants
patchelf --add-needed libXcursor.so target/${pkgs.stdenv.targetPlatform.config}/release/ants
old_rpath=$(patchelf --print-rpath target/${pkgs.stdenv.targetPlatform.config}/release/ants)
if [[ -z "$old_rpath" ]]; then
patchelf --set-rpath "${pkgs.lib.makeLibraryPath packages}" target/${pkgs.stdenv.targetPlatform.config}/release/ants

View file

@ -18,6 +18,12 @@ let
libGL
libxkbcommon
wayland
# Only needed for X11
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
];
in
pkgs.mkShell {