From 0bdb35d845bad9af4160ca04fe71b6a5e3c4723e Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Tue, 20 Feb 2024 03:55:33 +0800 Subject: [PATCH] flake: add support for mason --- flake.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index d803451..53ce806 100644 --- a/flake.nix +++ b/flake.nix @@ -13,8 +13,12 @@ pkgs = inputs.nixpkgs.legacyPackages.${system}; in { packages.default = let - runtimeDeps = with pkgs; [gcc]; - in ( + runtimeDeps = with pkgs; [ + # mason / tree-sitter + gcc + cargo + ]; + in pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped (pkgs.neovimUtils.makeNeovimConfig { @@ -25,8 +29,7 @@ } // { wrapperArgs = ["--prefix" "PATH" ":" "${lib.makeBinPath runtimeDeps}"]; - }) - ); + }); devShells.default = pkgs.mkShell { nativeBuildInputs = [