diff --git a/pkgs/by-name/ce/centerpiece/package.nix b/pkgs/by-name/ce/centerpiece/package.nix index f6d3f1a9a2f2..9fd6d7df7da7 100644 --- a/pkgs/by-name/ce/centerpiece/package.nix +++ b/pkgs/by-name/ce/centerpiece/package.nix @@ -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)