X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/80fa33c0fd65e4110f88f0cab9b19ca26c27d1f6..7b6d0a81e0f3c8e33b1b76d5ecbc5bdb25a87249:/nix/devshell.nix?ds=inline diff --git a/nix/devshell.nix b/nix/devshell.nix index 9ec0209..110a7c4 100644 --- a/nix/devshell.nix +++ b/nix/devshell.nix @@ -2,6 +2,7 @@ pkgs.mkShell { packages = with pkgs; [ git + git-bug go gofumpt golangci-lint @@ -21,5 +22,8 @@ pkgs.mkShell { 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 ''; }