From 7600a86dfca88f0ab06d0cd92dcdc860bcfddb34 Mon Sep 17 00:00:00 2001 From: Mahyar Mirrashed Date: Thu, 13 Mar 2025 11:09:57 -0700 Subject: [PATCH] fix(nix): set gopath for usage by IDEs --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 198da71fe8..cc4cf8d65e 100644 --- a/flake.nix +++ b/flake.nix @@ -23,8 +23,12 @@ env = { GOROOT = "${pkgs.go}/share/go"; - GOPATH = "$(pwd)/.go"; }; + + shellHook = '' + export GOPATH="$(pwd)/.go" + mkdir -p "$GOPATH" + ''; }; }; }