emacsPackages.gnuplot: replace program (#343696)

This commit is contained in:
Lin Jian 2024-09-23 09:49:48 +08:00 committed by GitHub
commit 154e2c9da0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -364,6 +364,13 @@ let
forge = buildWithGit super.forge;
gnuplot = super.gnuplot.overrideAttrs (attrs: {
postPatch = attrs.postPatch or "" + ''
substituteInPlace gnuplot.el \
--replace-fail 'gnuplot-program "gnuplot"' 'gnuplot-program "${lib.getExe pkgs.gnuplot}"'
'';
});
gnuplot-mode = super.gnuplot-mode.overrideAttrs (attrs: {
postPatch = attrs.postPatch or "" + ''
substituteInPlace gnuplot-mode.el \