Merge pull request #322553 from bbigras/centerpiece

centerpiece: fix for x11
This commit is contained in:
Masum Reza 2024-07-02 18:31:52 +05:30 committed by GitHub
commit 73f6fe486e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)