nix-conf/shell.nix

16 lines
294 B
Nix
Raw Normal View History

2025-02-23 17:40:10 +01:00
{
pkgs ? import <nixpkgs> {},
2025-02-23 18:30:57 +01:00
git-hooks,
2025-02-23 17:40:10 +01:00
...
}: let
2025-02-23 18:30:57 +01:00
git-check = git-hooks.lib.${pkgs.system}.run {
2025-02-23 17:40:10 +01:00
src = ".";
2025-02-23 20:28:36 +01:00
hooks = {
alejandra.enable = true;
deadnix.enable = true;
flake-checker.enable = true;
};
2025-02-23 17:40:10 +01:00
};
in
2025-02-23 18:30:57 +01:00
pkgs.mkShell {inherit (git-check) shellHook;}