fix: nvim-treesitter

This commit is contained in:
Ryan Yin
2024-01-08 10:03:48 +08:00
parent 31ac4f1439
commit 919527d6fc
2 changed files with 13 additions and 7 deletions
+9 -4
View File
@@ -52,11 +52,16 @@
}
);
devShells = forEachSystem (
system: {
default = nixpkgs.legacyPackages.${system}.mkShell {
packages = [
system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
default = pkgs.mkShell {
packages = with pkgs;[
# fix https://discourse.nixos.org/t/non-interactive-bash-errors-from-flake-nix-mkshell/33310
nixpkgs.legacyPackages.${system}.bashInteractive
bashInteractive
# fix `cc` replaced by clang, which causes nvim-treesitter compilation error
gcc
];
name = "dots";
shellHook = ''