diff --git a/default.nix b/default.nix index ea3ee86..470570e 100644 --- a/default.nix +++ b/default.nix @@ -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 diff --git a/shell.nix b/shell.nix index a5c1837..6fcadba 100644 --- a/shell.nix +++ b/shell.nix @@ -18,6 +18,12 @@ let libGL libxkbcommon wayland + + # Only needed for X11 + xorg.libX11 + xorg.libXcursor + xorg.libXrandr + xorg.libXi ]; in pkgs.mkShell {