Unverified Commit 73f6fe48 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

Merge pull request #322553 from bbigras/centerpiece

centerpiece: fix for x11
parents ae472bb7 182f5c5f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
, rustPlatform
, libxkbcommon
, wayland
, enableX11 ? true, xorg
}:

rustPlatform.buildRustPackage rec {
@@ -30,7 +31,12 @@ rustPlatform.buildRustPackage rec {
    libxkbcommon
    vulkan-loader
    wayland
  ];
  ] ++ lib.optionals enableX11 (with xorg; [
    libX11
    libXcursor
    libXi
    libXrandr
  ]);

  postFixup = lib.optional stdenv.isLinux ''
    rpath=$(patchelf --print-rpath $out/bin/centerpiece)