From 182f5c5f5c79486852b5b6e72b743fa029857f81 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Tue, 25 Jun 2024 22:34:03 -0400 Subject: [PATCH] centerpiece: fix for x11 --- pkgs/by-name/ce/centerpiece/package.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)