about summary refs log tree commit diff
path: root/shells
diff options
context:
space:
mode:
Diffstat (limited to 'shells')
-rw-r--r--shells/go.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/shells/go.nix b/shells/go.nix
new file mode 100644
index 000000000000..b88d29772e26
--- /dev/null
+++ b/shells/go.nix
@@ -0,0 +1,11 @@
+{ pkgs ? import ../. {} }:
+with pkgs;
+
+stdenv.mkDerivation {
+  name = "go-shell";
+  buildInputs = [ go goimports gopls ];
+
+  buildCommand = ''
+    printf "%s\n" ''${buildInputsArray[*]} > $out
+  '';
+}