diff options
| author | Akshay Nair <phenax5@gmail.com> | 2021-04-11 14:03:58 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2021-04-11 14:03:58 +0530 |
| commit | f8b7b030d293c17232753103564eba7e2f417a24 (patch) | |
| tree | 7abbccfea61558b90b4ebd67e9cc787c09ac0055 /shell/go.nix | |
| parent | 23dc78eff4857942a1af3cdf86fddb9fb0404607 (diff) | |
| download | nixos-config-f8b7b030d293c17232753103564eba7e2f417a24.tar.gz nixos-config-f8b7b030d293c17232753103564eba7e2f417a24.zip | |
Adds collection of shell files and new-shell command
Diffstat (limited to 'shell/go.nix')
| -rw-r--r-- | shell/go.nix | 9 |
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"; + ''; +} |
