Add go dev shell
This commit is contained in:
parent
c740cf6d5a
commit
d46fb8a767
2 changed files with 17 additions and 0 deletions
16
modules/go.nix
Normal file
16
modules/go.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
devShells.go = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
go
|
||||
gopls
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
go version
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue