diff --git a/pkgs/by-name/xr/xremap/package.nix b/pkgs/by-name/xr/xremap/package.nix index 6339cfcce9296..1aca4a4c53ae9 100644 --- a/pkgs/by-name/xr/xremap/package.nix +++ b/pkgs/by-name/xr/xremap/package.nix @@ -4,8 +4,10 @@ fetchFromGitHub, pkg-config, stdenv, - wayland, - kdeSupport ? true, + gnomeSupport ? false, + kdeSupport ? false, + wlrootsSupport ? false, + x11Support ? false, }: rustPlatform.buildRustPackage rec { @@ -21,16 +23,16 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-ABzt8PMsas9+NRvpgtZlsoYjjvwpU8f6lqhceHxq91M="; - cargoBuildFlags = lib.optional kdeSupport "--features kde"; + cargoBuildFlags = + lib.optional gnomeSupport "--features gnome" + ++ lib.optional kdeSupport "--features kde" + ++ lib.optional wlrootsSupport "--features wlroots" + ++ lib.optional x11Support "--features x11"; nativeBuildInputs = [ pkg-config ]; - buildInputs = lib.optionals stdenv.isLinux [ - wayland - ]; - meta = with lib; { description = "Key remapper for X11 and Wayland"; homepage = "https://github.com/k0kubun/xremap";