From 1159c64f588a5c04f6d61d2bd923e0dd7db9c824 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Mon, 24 Jul 2023 23:45:00 +0200 Subject: [PATCH] emacsPackages.pikchr-mode: 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 65b9c7b2889..2cf64953628 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix @@ -474,6 +474,13 @@ let # part of a larger package notmuch = dontConfigure super.notmuch; + pikchr-mode = super.pikchr-mode.overrideAttrs (attrs: { + postPatch = attrs.postPatch or "" + '' + substituteInPlace pikchr-mode.el \ + --replace '"pikchr")' '"${lib.getExe pkgs.pikchr}")' + ''; + }); + rtags = dontConfigure (externalSrc super.rtags pkgs.rtags); rtags-xref = dontConfigure super.rtags;