Splitted packages to fix issue with emacs on android

This commit is contained in:
Aleksandr Lebedev 2025-01-18 08:23:12 +01:00
parent e1a5aa5a41
commit 6e8277b6be
3 changed files with 69 additions and 53 deletions

View file

@ -0,0 +1,45 @@
{
pkgs,
emacs,
}: {
packages = with pkgs; [
git
libvterm
libtool
emacs
ripgrep
fd
coreutils
clang
cmake
nixfmt-rfc-style
markdownlint-cli
pandoc
gnumake
python3
isort
pipenv
python313Packages.nose2
python313Packages.pytest
graphviz
shellcheck
nodejs_23
(pkgs.writeShellScriptBin "doom-install" ''
${pkgs.git}/bin/git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d
${pkgs.git}/bin/git clone https://github.com/KyleKrein/doomemacs.git ~/.doom.d
~/.emacs.d/bin/doom install
~/.emacs.d/bin/doom sync
pidof emacs || ${emacs}/bin/emacs --daemon &
'')
(pkgs.writeShellScriptBin "doom-sync" ''
~/.emacs.d/bin/doom sync --aot --force
'')
(pkgs.writeShellScriptBin "doom-upgrade" ''
~/.emacs.d/bin/doom upgrade
'')
(pkgs.writeShellScriptBin "doom" ''
${emacs}/bin/emacsclient -c -a "${emacs}/bin/emacs"
'')
];
}