|
1 | 1 | { |
2 | | - description = "A fork setup-less and lspconfig-free of rust-tools.nvim"; |
| 2 | + description = "Supercharge your Rust experience in Neovim"; |
3 | 3 |
|
4 | 4 | inputs = { |
5 | 5 | nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; |
|
11 | 11 | inputs.nixpkgs.follows = "nixpkgs"; |
12 | 12 | }; |
13 | 13 |
|
14 | | - neorocks = { |
15 | | - url = "github:nvim-neorocks/neorocks"; |
16 | | - inputs = { |
17 | | - flake-parts.follows = "flake-parts"; |
18 | | - git-hooks.follows = "git-hooks"; |
19 | | - nixpkgs.follows = "nixpkgs"; |
20 | | - }; |
21 | | - }; |
| 14 | + neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay"; |
22 | 15 |
|
23 | 16 | gen-luarc = { |
24 | 17 | url = "github:mrcjkb/nix-gen-luarc-json"; |
|
44 | 37 | nixpkgs, |
45 | 38 | flake-parts, |
46 | 39 | git-hooks, |
47 | | - neorocks, |
48 | 40 | gen-luarc, |
49 | 41 | vimcats, |
50 | 42 | ... |
|
65 | 57 | git-hooks.flakeModule |
66 | 58 | ]; |
67 | 59 | perSystem = { |
68 | | - config, |
69 | 60 | system, |
70 | 61 | pkgs, |
71 | 62 | ... |
72 | 63 | }: let |
73 | | - ci-overlay = import ./nix/ci-overlay.nix { |
74 | | - inherit self; |
75 | | - plugin-name = name; |
76 | | - }; |
| 64 | + neovim-nightly = inputs.neovim-nightly-overlay.packages.${system}.default; |
| 65 | + |
| 66 | + ci-overlay = import ./nix/ci-overlay.nix {inherit neovim-nightly;}; |
77 | 67 |
|
78 | 68 | luarc-plugins = with pkgs.lua51Packages; |
79 | 69 | [ |
|
85 | 75 | ]); |
86 | 76 |
|
87 | 77 | luarc-nightly = pkgs.mk-luarc { |
88 | | - nvim = pkgs.neovim-nightly; |
| 78 | + nvim = neovim-nightly; |
89 | 79 | plugins = luarc-plugins; |
90 | 80 | }; |
91 | 81 |
|
|
148 | 138 | }; |
149 | 139 | }; |
150 | 140 |
|
151 | | - devShell = pkgs.nvim-nightly-tests.overrideAttrs (oa: { |
| 141 | + devShell = pkgs.mkShell { |
152 | 142 | name = "rustaceanvim devShell"; |
153 | 143 | shellHook = '' |
154 | 144 | ${pre-commit-check.shellHook} |
155 | | - ln -fs ${pkgs.luarc-to-json luarc-nightly} .luarc.json |
156 | 145 | ''; |
157 | | - buildInputs = with git-hooks.packages.${system}; |
158 | | - [ |
159 | | - pkgs.statix |
160 | | - pkgs.nixd |
161 | | - alejandra |
162 | | - lua-language-server |
163 | | - stylua |
164 | | - luacheck |
165 | | - editorconfig-checker |
166 | | - markdownlint-cli |
167 | | - docgen |
168 | | - ] |
169 | | - ++ oa.buildInputs; |
170 | | - doCheck = false; |
171 | | - }); |
| 146 | + buildInputs = with git-hooks.packages.${system}; [ |
| 147 | + pkgs.lux-cli |
| 148 | + pkgs.statix |
| 149 | + pkgs.nixd |
| 150 | + alejandra |
| 151 | + lua-language-server |
| 152 | + stylua |
| 153 | + editorconfig-checker |
| 154 | + markdownlint-cli |
| 155 | + docgen |
| 156 | + ]; |
| 157 | + }; |
172 | 158 |
|
173 | 159 | docgen = pkgs.callPackage ./nix/docgen.nix {inherit vimcats;}; |
174 | 160 | in { |
175 | 161 | _module.args.pkgs = import nixpkgs { |
176 | 162 | inherit system; |
177 | 163 | overlays = [ |
178 | 164 | ci-overlay |
179 | | - neorocks.overlays.default |
180 | 165 | gen-luarc.overlays.default |
181 | 166 | plugin-overlay |
182 | 167 | ]; |
|
204 | 189 | type-check-stable |
205 | 190 | type-check-nightly |
206 | 191 | ; |
207 | | - inherit |
208 | | - (pkgs) |
209 | | - nvim-stable-tests |
210 | | - nvim-nightly-tests |
211 | | - ; |
212 | 192 | }; |
213 | 193 | }; |
214 | 194 | flake = { |
|
0 commit comments