29 lines
775 B
Nix
29 lines
775 B
Nix
{ callPackage, kakoune, kakoune-unwrapped, ... }:
|
|
let
|
|
lsp = callPackage ./lsp.nix { };
|
|
rc = (callPackage ./rc.nix {
|
|
# prependRc = tree-sitter.rc;
|
|
});
|
|
in
|
|
(kakoune.override {
|
|
plugins = callPackage ./plugins.nix { }
|
|
++ callPackage ./themes.nix { }
|
|
++ [
|
|
(callPackage ./kaktex { })
|
|
(callPackage ./faces.nix { })
|
|
rc
|
|
# tree-sitter.plugin
|
|
lsp.plugin
|
|
];
|
|
}).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}"
|
|
'';
|
|
})
|