Merge pull request #251201 from nagy/emacs-typst-mode

emacsPackages.typst-mode: replace program
This commit is contained in:
Mario Rodas
2023-08-26 11:35:19 -05:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
@@ -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 ];
+1
View File
@@ -49,5 +49,6 @@ rustPlatform.buildRustPackage rec {
changelog = "https://github.com/typst/typst/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ drupol figsoda kanashimia ];
mainProgram = "typst";
};
}