Skip to content

Commit ff208ee

Browse files
committed
chore(nix): use test suite as base for devShell
1 parent 81dd0b0 commit ff208ee

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.envrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
use flake -Lv
1+
use flake . -Lv

flake.nix

+12-10
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,20 @@
136136
};
137137
};
138138

139-
devShell = pkgs.mkShell {
139+
devShell = pkgs.nvim-nightly-tests.overrideAttrs (oa: {
140140
name = "rustaceanvim devShell";
141141
inherit (pre-commit-check) shellHook;
142-
buildInputs = with pre-commit-hooks.packages.${system}; [
143-
alejandra
144-
lua-language-server
145-
stylua
146-
luacheck
147-
editorconfig-checker
148-
markdownlint-cli
149-
];
150-
};
142+
buildInputs = with pre-commit-hooks.packages.${system};
143+
[
144+
alejandra
145+
lua-language-server
146+
stylua
147+
luacheck
148+
editorconfig-checker
149+
markdownlint-cli
150+
]
151+
++ oa.buildInputs;
152+
});
151153

152154
docgen = pkgs.callPackage ./nix/docgen.nix {};
153155
in {

0 commit comments

Comments
 (0)