27 lines
715 B
Nix
27 lines
715 B
Nix
|
|
{
|
||
|
|
description = "LSP support for Typst with lsp-mode";
|
||
|
|
|
||
|
|
inputs = {
|
||
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||
|
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
|
};
|
||
|
|
|
||
|
|
outputs = {
|
||
|
|
self,
|
||
|
|
nixpkgs,
|
||
|
|
flake-utils,
|
||
|
|
}:
|
||
|
|
flake-utils.lib.eachSystem ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"] (system: let
|
||
|
|
pkgs = import nixpkgs {inherit system;};
|
||
|
|
in {
|
||
|
|
formatter = pkgs.alejandra;
|
||
|
|
devShells.default = pkgs.mkShell {
|
||
|
|
name = "lsp-typst";
|
||
|
|
buildInputs = [pkgs.eask-cli];
|
||
|
|
shellHook = ''
|
||
|
|
echo "lsp-typst devshell — Eask version: $(eask --version 2>/dev/null || echo 'not found')"
|
||
|
|
'';
|
||
|
|
};
|
||
|
|
});
|
||
|
|
}
|