From cb4f61076adb157d0a4ae7478e367567511dd5ac Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Tue, 16 Mar 2021 14:12:53 +0100 Subject: [PATCH] libkookie: fix emacs lsp-mode loading For some reason when depending on magit the dependency "f" will be removed from the package closure. This breaks lsp-mode. This fix manually installs "f" as a depedency when installing magit. Ideally, there should be a kookie-magit module with additional configuration, and to make sure that I can have magit installed without having to depend on kookie-notmuch to be installed. --- .../kookie/emacs/kookie-notmuch/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/infra/libkookie/overlays/kookie/emacs/kookie-notmuch/default.nix b/infra/libkookie/overlays/kookie/emacs/kookie-notmuch/default.nix index 67ad383ff46..6663bad5cdf 100644 --- a/infra/libkookie/overlays/kookie/emacs/kookie-notmuch/default.nix +++ b/infra/libkookie/overlays/kookie/emacs/kookie-notmuch/default.nix @@ -1,4 +1,16 @@ { buildModule, epkgs, pkgs }: with epkgs; -(buildModule "kookie-notmuch" ./. [ magit notmuch ]) +(buildModule "kookie-notmuch" ./. [ magit notmuch + + ## FIXME: installing "f" directly + ## here is required because it is + ## a dependency of many other + ## tools, and installing magit + ## seems to remove it from the + ## emacs closure. + ## + ## Why? I don't know. Maybe one + ## day we will understand. + f + ])