nix-home/packages/common/nki-kakoune/default.nix

29 lines
775 B
Nix
Raw Normal View History

2024-10-07 12:30:47 +00:00
{ callPackage, kakoune, kakoune-unwrapped, ... }:
let
lsp = callPackage ./lsp.nix { };
2024-10-07 14:31:33 +00:00
rc = (callPackage ./rc.nix {
# prependRc = tree-sitter.rc;
2024-10-07 14:31:33 +00:00
});
2024-10-07 12:30:47 +00:00
in
(kakoune.override {
2024-09-28 14:54:39 +00:00
plugins = callPackage ./plugins.nix { }
++ callPackage ./themes.nix { }
++ [
2024-10-07 12:30:47 +00:00
(callPackage ./kaktex { })
2024-10-07 19:11:48 +00:00
(callPackage ./faces.nix { })
2024-10-07 14:31:33 +00:00
rc
# tree-sitter.plugin
2024-10-07 12:30:47 +00:00
lsp.plugin
2024-09-28 14:34:57 +00:00
];
2024-10-07 12:30:47 +00:00
}).overrideAttrs (attrs: {
buildCommand = ''
${attrs.buildCommand or ""}
# location of kak binary is used to find ../share/kak/autoload,
# unless explicitly overriden with KAKOUNE_RUNTIME
rm "$out/bin/kak"
makeWrapper "${kakoune-unwrapped}/bin/kak" "$out/bin/kak" \
--set KAKOUNE_RUNTIME "$out/share/kak" \
--suffix PATH ":" "${lsp.extraPaths}"
2024-10-07 12:30:47 +00:00
'';
})