We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4302615 commit 5f3178dCopy full SHA for 5f3178d
flake.nix
@@ -1,5 +1,5 @@
1
{
2
- description = "Generic Dev Environment";
+ description = "Go Dev Environment for api.acmcsuf.com";
3
4
inputs = {
5
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
@@ -26,14 +26,16 @@
26
gotools
27
gopls # Go langauge server
28
nilaway # Go static analysis tool
29
+ delve # Go debugger
30
sqlc # compiles SQL queries to Go code
31
sqlfluff # SQL linter
32
gnumake
33
];
34
35
shellHook = ''
36
export DATABASE_URL="file:dev.db?cache=shared&mode=rwc"
- echo "Loaded dev shell."
37
+ export CGO_ENABLED=0 # cgo compiler flags cause issues with delve when using Nix
38
+ echo "Loaded dev shell."
39
'';
40
};
41
}
0 commit comments