From 5e8f9e44bb16eadf913f6c6bff32d24fe5753dbb Mon Sep 17 00:00:00 2001 From: Makesesama Date: Mon, 4 May 2026 22:55:58 +0200 Subject: [PATCH] fix: drop full emacs runtime dep, only emacsclient is used sims only invokes emacsclient (in modules/notmuch.py) and never the full emacs binary. Bundling emacs onto the wrapper PATH was forcing consumers to pull in an extra ~310M emacs closure (often a different version from the user's actual editor). Rely on the consumer's emacsclient via PATH, configurable via services.sims.settings.notmuch.emacsclient_command. --- nix/derivation.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nix/derivation.nix b/nix/derivation.nix index 13d7d72..6a50370 100644 --- a/nix/derivation.nix +++ b/nix/derivation.nix @@ -14,7 +14,6 @@ webp-pixbuf-loader, notmuch, khal, - emacs, dbus, ... }: @@ -74,11 +73,17 @@ python3Packages.buildPythonApplication { preFixup = '' makeWrapperArgs+=("''${gappsWrapperArgs[@]}") - makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ khal notmuch emacs dbus ]}) + makeWrapperArgs+=(--prefix PATH : ${ + lib.makeBinPath [ + khal + notmuch + dbus + ] + }) ''; passthru = { - inherit khal notmuch emacs; + inherit khal notmuch; }; meta = {