aboutsummaryrefslogtreecommitdiff
path: root/root/nix/devshell.nix
diff options
context:
space:
mode:
authorvkcku <[email protected]>2026-06-02 08:15:13 +0530
committervkcku <[email protected]>2026-06-02 08:15:13 +0530
commit3cabe5719c8084bcfe87b90da779bcd72082b14d (patch)
tree5fecc3ab4baff2aca451808364a7c5d8177ddfec /root/nix/devshell.nix
parentinfra: only include infra directory (diff)
root: poor man's CI
monorepo-revid: 81ecb1e1cb320d9c9d7e5b8d14af34304f52ef00
Diffstat (limited to 'root/nix/devshell.nix')
-rw-r--r--root/nix/devshell.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/root/nix/devshell.nix b/root/nix/devshell.nix
index 98131e4..80eefe0 100644
--- a/root/nix/devshell.nix
+++ b/root/nix/devshell.nix
@@ -9,6 +9,15 @@
packages = [
pkgs.nixd
];
+
+ shellHook = ''
+ hooksdir="$(git rev-parse --show-toplevel)/root/hooks"
+ if [ ! -d "$hooksdir" ]; then
+ echo "error: hooks directory not found at $hooksdir"
+ exit 1
+ fi
+ git config set core.hooksPath "$hooksdir"
+ '';
};
devShells.root =