diff --git a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix index f23e46466c03..e1d1c6abbfff 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix @@ -522,6 +522,13 @@ let ''; }); + tokei = super.tokei.overrideAttrs (attrs: { + postPatch = attrs.postPatch or "" + '' + substituteInPlace tokei.el \ + --replace 'tokei-program "tokei"' 'tokei-program "${lib.getExe pkgs.tokei}"' + ''; + }); + treemacs-magit = super.treemacs-magit.overrideAttrs (attrs: { # searches for Git at build time nativeBuildInputs =