emacs: simplify manualPackages with packagesFromDirectoryRecursive

This commit is contained in:
Lin Jian 2024-07-28 20:29:03 +08:00
parent cbc5ae3b20
commit 429bbdb5ac
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5
45 changed files with 5 additions and 83 deletions

View File

@ -4,111 +4,33 @@ self:
let
inherit (self) callPackage;
in
{
lib.packagesFromDirectoryRecursive {
inherit callPackage;
directory = ./manual-packages;
}
// {
inherit (pkgs) emacspeak;
acm = callPackage ./manual-packages/acm { };
acm-terminal = callPackage ./manual-packages/acm-terminal { };
agda2-mode = callPackage ./manual-packages/agda2-mode { };
cask = callPackage ./manual-packages/cask { };
codeium = callPackage ./manual-packages/codeium {
inherit (pkgs) codeium;
};
consult-gh = callPackage ./manual-packages/consult-gh { };
control-lock = callPackage ./manual-packages/control-lock { };
copilot = callPackage ./manual-packages/copilot { };
ebuild-mode = callPackage ./manual-packages/ebuild-mode { };
el-easydraw = callPackage ./manual-packages/el-easydraw { };
elisp-ffi = callPackage ./manual-packages/elisp-ffi { };
emacs-conflict = callPackage ./manual-packages/emacs-conflict { };
evil-markdown = callPackage ./manual-packages/evil-markdown { };
font-lock-plus = callPackage ./manual-packages/font-lock-plus { };
git-undo = callPackage ./manual-packages/git-undo { };
grid = callPackage ./manual-packages/grid { };
helm-words = callPackage ./manual-packages/helm-words { };
icicles = callPackage ./manual-packages/icicles { };
idris2-mode = callPackage ./manual-packages/idris2-mode { };
isearch-plus = callPackage ./manual-packages/isearch-plus { };
isearch-prop = callPackage ./manual-packages/isearch-prop { };
jam-mode = callPackage ./manual-packages/jam-mode { };
ligo-mode = callPackage ./manual-packages/ligo-mode { };
llvm-mode = callPackage ./manual-packages/llvm-mode { };
lsp-bridge = callPackage ./manual-packages/lsp-bridge {
inherit (pkgs) basedpyright git go gopls python3;
};
lspce = callPackage ./manual-packages/lspce { };
matrix-client = callPackage ./manual-packages/matrix-client {
_map = self.map;
};
mu4e = callPackage ./manual-packages/mu4e { };
notdeft = callPackage ./manual-packages/notdeft { };
ott-mode = callPackage ./manual-packages/ott-mode { };
pod-mode = callPackage ./manual-packages/pod-mode { };
prisma-mode = callPackage ./manual-packages/prisma-mode { };
structured-haskell-mode = self.shm;
sv-kalender = callPackage ./manual-packages/sv-kalender { };
texpresso = callPackage ./manual-packages/texpresso { inherit (pkgs) texpresso; };
tree-sitter-langs = callPackage ./manual-packages/tree-sitter-langs { final = self; };
treesit-grammars = callPackage ./manual-packages/treesit-grammars { };
tsc = callPackage ./manual-packages/tsc { };
urweb-mode = callPackage ./manual-packages/urweb-mode { };
voicemacs = callPackage ./manual-packages/voicemacs { };
wat-mode = callPackage ./manual-packages/wat-mode { };
xapian-lite = callPackage ./manual-packages/xapian-lite { };
yes-no = callPackage ./manual-packages/yes-no { };
youtube-dl = callPackage ./manual-packages/youtube-dl { };
# From old emacsPackages (pre emacsPackagesNg)
cedille = callPackage ./manual-packages/cedille { inherit (pkgs) cedille; };
color-theme-solarized = callPackage ./manual-packages/color-theme-solarized { };
hsc3-mode = callPackage ./manual-packages/hsc3 { };
prolog-mode = callPackage ./manual-packages/prolog { };
rect-mark = callPackage ./manual-packages/rect-mark { };
session-management-for-emacs = callPackage ./manual-packages/session-management-for-emacs { };
sunrise-commander = callPackage ./manual-packages/sunrise-commander { };
# camelCase aliases for some of the kebab-case expressions above
colorThemeSolarized = self.color-theme-solarized;