nix-conf/shell.nix

12 lines
218 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 = ".";
hooks = {alejandra.enable = true;};
};
in
2025-02-23 18:30:57 +01:00
pkgs.mkShell {inherit (git-check) shellHook;}