Installation
Build from source
- Ensure the Rust toolchain is installed using rustup.rs.
- Use Rust 1.80.0:
rustup default 1.80.0
- Clone the project:
git clone https://github.com/ki-editor/ki-editor.git
- Run installation:
cd ki-editor
cargo install --locked --path .
- The
ki
binary should be installed.
Use nix flake 1
- Install ki package
- with
nix profile
:
nix profile install github:ki-editor/ki-editor
- or as part of nix configuration, e.g.:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
ki-editor.url = "github:ki-editor/ki-editor";
};
outputs = { nixpkgs, ki-editor, ... }: {
nixosConfigurations."«hostname»" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ environment.systemPackages = [ ki-editor.packages.x86_64-linux.default ] }
./configuration.nix
];
};
};
}
- Build tree-sitter grammars:
ki grammar fetch && ki grammar build
Footnotes
-
This flake also provides a basic development environment for Ki Editor which can be enabled by
nix develop
command. ↩