Add shell.nix
This commit is contained in:
parent
974433f232
commit
e883be8c97
3 changed files with 34 additions and 0 deletions
15
shell.nix
Normal file
15
shell.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ 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 ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue