feat(go): add go as a template
add go as a template when i need to
This commit is contained in:
parent
edcf6f758e
commit
cd612f03ad
8 changed files with 224 additions and 1 deletions
10
templates/go/nix/package.nix
Normal file
10
templates/go/nix/package.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ buildGoModule, lib }:
|
||||
let
|
||||
pname = "go-app";
|
||||
version = "0.1.0";
|
||||
in
|
||||
buildGoModule {
|
||||
inherit pname version;
|
||||
src = ../.;
|
||||
vendorHash = null;
|
||||
}
|
11
templates/go/nix/shell.nix
Normal file
11
templates/go/nix/shell.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ mkShell, go, go-app, gopls, go-tools, gotools }:
|
||||
mkShell {
|
||||
name = "Go Development Shell";
|
||||
inputsFrom = [ go-app ];
|
||||
buildInputs = [
|
||||
go
|
||||
gopls
|
||||
go-tools
|
||||
gotools
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue