centerpiece: fix for x11

This commit is contained in:
Bruno Bigras 2024-06-25 22:34:03 -04:00
parent c7221bae0f
commit 182f5c5f5c

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)