languages/nim: assert on darwin systems

due to nimlsp not working properly on darwin
This commit is contained in:
NotAShelf 2024-02-10 12:55:20 +03:00
parent 38bf156537
commit 6346617a50
No known key found for this signature in database
GPG Key ID: 02D1DD3FA08B6B29
2 changed files with 10 additions and 1 deletions

View File

@ -68,7 +68,7 @@ inputs: let
elixir.enable = isMaximal;
bash.enable = isMaximal;
terraform.enable = isMaximal;
nim.enable = isMaximal;
nim.enable = false;
tailwind.enable = isMaximal;
clang = {
enable = isMaximal;

View File

@ -88,6 +88,15 @@ in {
};
config = mkIf cfg.enable (mkMerge [
{
assertions = [
{
assertion = !pkgs.stdenv.isDarwin;
message = "Nim language support is only available on Linux";
}
];
}
(mkIf cfg.treesitter.enable {
vim.treesitter.enable = true;
vim.treesitter.grammars = [cfg.treesitter.package];