add devShell for go
This commit is contained in:
parent
57f2578f74
commit
87f0ffd694
3 changed files with 17 additions and 0 deletions
11
README.md
Normal file
11
README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Dev Shells with Nix
|
||||||
|
|
||||||
|
This repo contains a bunch of handy dev shells that can used on any system that has the nix package manager installed.
|
||||||
|
|
||||||
|
## Available shells
|
||||||
|
|
||||||
|
### Go
|
||||||
|
- makes `go` and `gopls` available
|
||||||
|
- can be activated with `nix develop github:adtya/devshells#go`
|
||||||
|
- can also be activated with direnv by adding `use flake github:adtya/devshells#go` to `.envrc`
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
devShells = {
|
||||||
|
go = import ./go.nix { inherit pkgs; };
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
3
go.nix
Normal file
3
go.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{ pkgs }: pkgs.mkShell {
|
||||||
|
packages = with pkgs; [ go gopls ];
|
||||||
|
}
|
Loading…
Reference in a new issue