Unverified Commit 9395fe9d authored by Colin's avatar Colin Committed by GitHub
Browse files

mslicer: fix startup on X11 (#473732)

parents c10ea2fa e8d9e1d8
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
  rustPlatform,
  vulkan-loader,
  wayland,
  xorg,
}:

rustPlatform.buildRustPackage (finalAttrs: {
@@ -27,17 +28,27 @@ rustPlatform.buildRustPackage (finalAttrs: {
    libxkbcommon
    vulkan-loader
    wayland
    xorg.libXcursor
    xorg.libXrandr
    xorg.libXi
    xorg.libX11
  ];

  # Force linking to libEGL, which is always dlopen()ed, and to
  # libwayland-client & libxkbcommon, which is dlopen()ed based on the
  # winit backend.
  NIX_LDFLAGS = [
    "--push-state"
    "--no-as-needed"
    "-lEGL"
    "-lvulkan"
    "-lwayland-client"
    "-lxkbcommon"
    "-lX11"
    "-lXcursor"
    "-lXrandr"
    "-lXi"
    "--pop-state"
  ];

  strictDeps = true;