nix: initial tooling
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iabcad180d133f01d3c98e3d5fc9630b26a6a6964
This commit is contained in:
parent
7146a61326
commit
3fca34dd6f
4 changed files with 76 additions and 0 deletions
11
nix/package.nix
Normal file
11
nix/package.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{buildGoModule}:
|
||||
buildGoModule {
|
||||
pname = "sample-go";
|
||||
version = "0.0.1";
|
||||
|
||||
src = ../.;
|
||||
|
||||
vendorHash = "";
|
||||
|
||||
ldflags = ["-s" "-w"];
|
||||
}
|
||||
14
nix/shell.nix
Normal file
14
nix/shell.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
mkShell,
|
||||
go,
|
||||
gopls,
|
||||
delve,
|
||||
}:
|
||||
mkShell {
|
||||
name = "go";
|
||||
packages = [
|
||||
delve
|
||||
go
|
||||
gopls
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue