go environment setup

This commit is contained in:
Katherina Walshe-Grey 2024-10-28 18:12:11 +00:00
parent 170a116ffb
commit c3c1fe8b3a
2 changed files with 13 additions and 0 deletions

10
shell.nix Normal file
View file

@ -0,0 +1,10 @@
let
pkgs = import <nixpkgs> {};
in pkgs.mkShell {
packages = with pkgs; [
go
];
shellHook = ''
export PATH=$PATH:~/go/bin
'';
}