mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
emacs: compile with vterm
This commit is contained in:
parent
2a0f1bebff
commit
6c11401a38
1 changed files with 13 additions and 21 deletions
|
|
@ -3,27 +3,19 @@
|
|||
{
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package = (inputs.emacs-overlay.packages.${system}.emacsPgtk.override {
|
||||
withXwidgets = true;
|
||||
}).overrideAttrs (oa: {
|
||||
buildInputs = oa.buildInputs ++ lib.optionals pkgs.stdenv.isDarwin
|
||||
[ pkgs.darwin.apple_sdk.frameworks.WebKit ];
|
||||
});
|
||||
package =
|
||||
let
|
||||
emacsPgtkWithXwidgets = inputs.emacs-overlay.packages.${system}.emacsPgtk.override {
|
||||
withXwidgets = true;
|
||||
};
|
||||
myEmacs = emacsPgtkWithXwidgets.overrideAttrs (oa: {
|
||||
buildInputs = oa.buildInputs ++ lib.optionals pkgs.stdenv.isDarwin
|
||||
[ pkgs.darwin.apple_sdk.frameworks.WebKit ];
|
||||
});
|
||||
in
|
||||
myEmacs.passthru.pkgs.emacsWithPackages (epkgs: [
|
||||
epkgs.vterm
|
||||
]);
|
||||
};
|
||||
|
||||
# https://docs.doomemacs.org/latest/modules/term/vterm/
|
||||
#
|
||||
# Sadly, this doesn't work yet. This is the blocker:
|
||||
# https://github.com/akermu/emacs-libvterm/issues/333#issuecomment-1272195411
|
||||
home.packages = with pkgs; [
|
||||
cmake
|
||||
libvterm-neovim
|
||||
(pkgs.writeShellApplication {
|
||||
name = "glibtool";
|
||||
runtimeInputs = [ libtool ];
|
||||
text = ''
|
||||
libtool "$@"
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue