16 lines
377 B
Nix
16 lines
377 B
Nix
|
{ pkgs ? import <nixpkgs> { }, pre-commit-hooks }:
|
||
|
let
|
||
|
pre-commit-check = pre-commit-hooks.lib.${pkgs.system}.run {
|
||
|
src = ./.;
|
||
|
hooks = {
|
||
|
shfmt.enable = true;
|
||
|
html-tidy.enable = true;
|
||
|
taplo.enable = true;
|
||
|
};
|
||
|
};
|
||
|
in pkgs.mkShell {
|
||
|
inherit (pre-commit-check) shellHook;
|
||
|
name = "cronyakatsuki.xyz";
|
||
|
nativeBuildInputs = [ pkgs.hugo ];
|
||
|
}
|