Skip to content

Commit

Permalink
chore(nix): use test environment for devShell
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Dec 14, 2023
1 parent 7168f8e commit e2bc82d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use flake -Lv
use flake . -Lv
24 changes: 13 additions & 11 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -155,18 +155,20 @@
};
};

haskell-tools-shell = pkgs.mkShell {
name = "haskell-tools.nvim-shell";
haskell-tools-shell = pkgs.haskell-tools-test.overrideAttrs (oa: {
name = "haskell-tools.nvim-devShell";
inherit (pre-commit-check) shellHook;
buildInputs = with pre-commit-hooks.packages.${system}; [
alejandra
lua-language-server
stylua
luacheck
editorconfig-checker
markdownlint-cli
];
};
buildInputs = with pre-commit-hooks.packages.${system};
[
alejandra
lua-language-server
stylua
luacheck
editorconfig-checker
markdownlint-cli
]
++ oa.buildInputs;
});
in {
devShells = rec {
default = haskell-tools;
Expand Down

0 comments on commit e2bc82d

Please sign in to comment.