X11 libraries
This commit is contained in:
parent
eeac46f6ab
commit
b931079a71
2 changed files with 10 additions and 0 deletions
|
@ -8,6 +8,8 @@ let
|
||||||
libGLU
|
libGLU
|
||||||
libGL
|
libGL
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libXcursor
|
||||||
wayland
|
wayland
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
|
@ -28,6 +30,8 @@ pkgs.rustPlatform.buildRustPackage {
|
||||||
patchelf --add-needed libwayland-client.so target/${pkgs.stdenv.targetPlatform.config}/release/ants
|
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 libGLU.so target/${pkgs.stdenv.targetPlatform.config}/release/ants
|
||||||
patchelf --add-needed libEGL.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)
|
old_rpath=$(patchelf --print-rpath target/${pkgs.stdenv.targetPlatform.config}/release/ants)
|
||||||
if [[ -z "$old_rpath" ]]; then
|
if [[ -z "$old_rpath" ]]; then
|
||||||
patchelf --set-rpath "${pkgs.lib.makeLibraryPath packages}" target/${pkgs.stdenv.targetPlatform.config}/release/ants
|
patchelf --set-rpath "${pkgs.lib.makeLibraryPath packages}" target/${pkgs.stdenv.targetPlatform.config}/release/ants
|
||||||
|
|
|
@ -18,6 +18,12 @@ let
|
||||||
libGL
|
libGL
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
wayland
|
wayland
|
||||||
|
|
||||||
|
# Only needed for X11
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libXcursor
|
||||||
|
xorg.libXrandr
|
||||||
|
xorg.libXi
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
|
|
Loading…
Reference in a new issue