about summary refs log tree commit diff
path: root/shells
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-03-21 19:30:14 +0000
committerAlyssa Ross <hi@alyssa.is>2021-03-21 19:30:14 +0000
commitffd1fc306a42d9a958678e144e9a3001fd27609d (patch)
treee024416f5571f7475ff009c45524bb64f2a95966 /shells
parentad3ce6172eeaddfeca69c0c3add2c8d12377fde3 (diff)
downloadnixlib-ffd1fc306a42d9a958678e144e9a3001fd27609d.tar
nixlib-ffd1fc306a42d9a958678e144e9a3001fd27609d.tar.gz
nixlib-ffd1fc306a42d9a958678e144e9a3001fd27609d.tar.bz2
nixlib-ffd1fc306a42d9a958678e144e9a3001fd27609d.tar.lz
nixlib-ffd1fc306a42d9a958678e144e9a3001fd27609d.tar.xz
nixlib-ffd1fc306a42d9a958678e144e9a3001fd27609d.tar.zst
nixlib-ffd1fc306a42d9a958678e144e9a3001fd27609d.zip
shellls/go: init
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
+  '';
+}