emacsPackages.typst-mode: replace program

This commit is contained in:
Daniel Nagy 2023-08-24 20:15:00 +02:00
parent 31dc5e9564
commit faeb7ac63a
No known key found for this signature in database
GPG Key ID: 1B8E8DCB576FB671

View File

@ -535,6 +535,13 @@ let
(attrs.nativeBuildInputs or [ ]) ++ [ pkgs.git ];
});
typst-mode = super.typst-mode.overrideAttrs (attrs: {
postPatch = attrs.postPatch or "" + ''
substituteInPlace typst-mode.el \
--replace 'typst-executable-location "typst"' 'typst-executable-location "${lib.getExe pkgs.typst}"'
'';
});
vdiff-magit = super.vdiff-magit.overrideAttrs (attrs: {
nativeBuildInputs =
(attrs.nativeBuildInputs or [ ]) ++ [ pkgs.git ];