From 76034fee72c735a6419477f9e968284fa44e6b1e Mon Sep 17 00:00:00 2001 From: Diogo Xavier Date: Sat, 8 Jan 2022 15:14:14 +0000 Subject: [PATCH] jetbrains.goland: Fix debugging --- pkgs/applications/editors/jetbrains/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/jetbrains/default.nix b/pkgs/applications/editors/jetbrains/default.nix index 2b03b5e94b3a..a957561faa88 100644 --- a/pkgs/applications/editors/jetbrains/default.nix +++ b/pkgs/applications/editors/jetbrains/default.nix @@ -93,8 +93,8 @@ let chmod +x $out/goland*/plugins/go/lib/dlv/linux/dlv # fortify source breaks build since delve compiles with -O0 - wrapProgram $out/goland*/plugins/go/lib/dlv/linux/dlv \ - --prefix disableHardening " " fortify + wrapProgram $out/bin/goland \ + --set CGO_CPPFLAGS "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" ''; });