aboutsummaryrefslogtreecommitdiff
path: root/shell/go.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell/go.nix')
-rw-r--r--shell/go.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/go.nix b/shell/go.nix
new file mode 100644
index 0000000..6af8f85
--- /dev/null
+++ b/shell/go.nix
@@ -0,0 +1,9 @@
+{}:
+with import <nixpkgs> {};
+stdenv.mkDerivation {
+ name = "goenv";
+ buildInputs = with pkgs; [ go gopls golangci-lint ];
+ shellHook = ''
+ export GOROOT="${pkgs.go.out}/share/go";
+ '';
+}