From 03d1fdee875732a6e6e43280f6330c2a12bb2815 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 12 Dec 2024 16:11:24 +0100 Subject: [PATCH] emacsPackages.treemacs: replace python3 program --- .../editors/emacs/elisp-packages/melpa-packages.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix index 42e2340d7238..91abc49f4c2b 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix @@ -550,6 +550,13 @@ let ''; }); + treemacs = super.treemacs.overrideAttrs (attrs: { + postPatch = (attrs.postPatch or "") + '' + substituteInPlace src/elisp/treemacs-customization.el \ + --replace 'treemacs-python-executable (treemacs--find-python3)' 'treemacs-python-executable "${lib.getExe pkgs.python3}"' + ''; + }); + treemacs-magit = super.treemacs-magit.overrideAttrs (attrs: { # searches for Git at build time nativeBuildInputs =