fix: pre-commit-hook config
This commit is contained in:
parent
1f678dfccc
commit
df0cf8b9dd
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
/result
|
/result
|
||||||
.direnv
|
.direnv
|
||||||
|
.pre-commit-config.yaml
|
||||||
|
|
|
@ -106,6 +106,7 @@
|
||||||
perSystem = {
|
perSystem = {
|
||||||
pkgs,
|
pkgs,
|
||||||
self',
|
self',
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# Configure treefmt
|
# Configure treefmt
|
||||||
|
@ -130,8 +131,12 @@
|
||||||
in
|
in
|
||||||
builtins.listToAttrs (builtins.map toPackage pkgFiles);
|
builtins.listToAttrs (builtins.map toPackage pkgFiles);
|
||||||
# Create a useable devshell for me
|
# Create a useable devshell for me
|
||||||
devshells.default = {
|
devShells.default = pkgs.mkShell {
|
||||||
name = "dev";
|
name = "dev";
|
||||||
|
shellHook = ''
|
||||||
|
${config.pre-commit.installationScript}
|
||||||
|
echo 1>&2 "Welcome to the development shell!"
|
||||||
|
'';
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.nil
|
pkgs.nil
|
||||||
pkgs.pre-commit
|
pkgs.pre-commit
|
||||||
|
|
Loading…
Reference in a new issue