]> git.giacomolli.uk - onechat/blobdiff - nix/devshell.nix
Import WhatsApp history into a child
[onechat] / nix / devshell.nix
index 9ec0209bd9b453d53019ac1c43232cdf9dbaad86..110a7c490a43988bb39964bc7818be970dfc4a2e 100644 (file)
@@ -2,6 +2,7 @@
 pkgs.mkShell {
   packages = with pkgs; [
     git
 pkgs.mkShell {
   packages = with pkgs; [
     git
+    git-bug
     go
     gofumpt
     golangci-lint
     go
     gofumpt
     golangci-lint
@@ -21,5 +22,8 @@ pkgs.mkShell {
 
   shellHook = ''
     git config core.hooksPath .githooks 2>/dev/null || true
 
   shellHook = ''
     git config core.hooksPath .githooks 2>/dev/null || true
+    root=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
+    export ONECHAT_DIR="''${ONECHAT_DIR:-$root/.devenv/onechat}"
+    unset root
   '';
 }
   '';
 }