From 2e9917baa12ad6502ac7a61903be3922ce88c6d4 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Fri, 21 Apr 2023 10:45:00 +0200 Subject: [PATCH] emacsPackages.tokei: replace 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 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 =