Skip to content

Commit 5f3178d

Browse files
committed
added delve in nix flake
1 parent 4302615 commit 5f3178d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

flake.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
description = "Generic Dev Environment";
2+
description = "Go Dev Environment for api.acmcsuf.com";
33

44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
@@ -26,14 +26,16 @@
2626
gotools
2727
gopls # Go langauge server
2828
nilaway # Go static analysis tool
29+
delve # Go debugger
2930
sqlc # compiles SQL queries to Go code
3031
sqlfluff # SQL linter
3132
gnumake
3233
];
3334

3435
shellHook = ''
3536
export DATABASE_URL="file:dev.db?cache=shared&mode=rwc"
36-
echo "Loaded dev shell."
37+
export CGO_ENABLED=0 # cgo compiler flags cause issues with delve when using Nix
38+
echo "Loaded dev shell."
3739
'';
3840
};
3941
}

0 commit comments

Comments
 (0)