From 92aaeb76161b6f02d86591ab4d464bcb60b6edcb Mon Sep 17 00:00:00 2001 From: Tobias Pflug Date: Thu, 29 Oct 2020 18:01:33 +0100 Subject: [PATCH] Enable shellcheck pre-commit hook This enables the shellcheck pre-commit check of pre-commit-hooks.nix The hook will be enabled on the first invocation of `shellHook` which occurs either when entering a `nix-shell` or via `.envrc` in case your integration is configured to evaluate shell hooks. --- shell.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell.nix b/shell.nix index cc4b4a52cfa..b79d3802153 100644 --- a/shell.nix +++ b/shell.nix @@ -12,10 +12,12 @@ let tools = { stylish-haskell = dev.packages.stylish-haskell; nixpkgs-fmt = pkgs.nixpkgs-fmt; + shellcheck = pkgs.shellcheck; }; hooks = { stylish-haskell.enable = true; nixpkgs-fmt.enable = true; + shellcheck.enable = true; }; }; in