flake: add support for mason

This commit is contained in:
Guanran Wang 2024-02-20 03:55:33 +08:00
parent f98e8cce7d
commit 0bdb35d845
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -13,8 +13,12 @@
pkgs = inputs.nixpkgs.legacyPackages.${system}; pkgs = inputs.nixpkgs.legacyPackages.${system};
in { in {
packages.default = let packages.default = let
runtimeDeps = with pkgs; [gcc]; runtimeDeps = with pkgs; [
in ( # mason / tree-sitter
gcc
cargo
];
in
pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped
(pkgs.neovimUtils.makeNeovimConfig (pkgs.neovimUtils.makeNeovimConfig
{ {
@ -25,8 +29,7 @@
} }
// { // {
wrapperArgs = ["--prefix" "PATH" ":" "${lib.makeBinPath runtimeDeps}"]; wrapperArgs = ["--prefix" "PATH" ":" "${lib.makeBinPath runtimeDeps}"];
}) });
);
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
nativeBuildInputs = [ nativeBuildInputs = [