nixos/shell.nix

8 lines
240 B
Nix
Raw Permalink Normal View History

2024-03-17 14:39:43 +01:00
{ pkgs ? import <nixpkgs> { }, pre-commit-hooks, ... }:
let
pre-commit-check = pre-commit-hooks.lib.${pkgs.system}.run {
src = ".";
hooks = { nixfmt.enable = true; };
};
in pkgs.mkShell { inherit (pre-commit-check) shellHook; }