From 0c50579dfcbf343378ce3d1adffec032792c4f76 Mon Sep 17 00:00:00 2001 From: yuanw Date: Fri, 29 Aug 2025 09:09:03 -0600 Subject: [PATCH] emacs.pkgs.emacs-application-framework: use xdotool when available --- .../emacs-application-framework/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/editors/emacs/elisp-packages/manual-packages/emacs-application-framework/default.nix b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/emacs-application-framework/default.nix index 26d1bbe7a98f..9745dde2205a 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/manual-packages/emacs-application-framework/default.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/emacs-application-framework/default.nix @@ -1,5 +1,6 @@ { # Basic + stdenv, lib, melpaBuild, fetchFromGitHub, @@ -42,12 +43,14 @@ let pythonEnv = python3.withPackages pythonPkgs; otherPackageLists = [ - [ - git - nodejs - wmctrl - xdotool - ] + ( + [ + git + nodejs + wmctrl + ] + ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform xdotool) [ xdotool ] + ) ] ++ appOtherDeps; otherPkgs = builtins.concatLists (otherPackageLists);