delve: disable source fortify at runtime

(cherry picked from commit b48e56c746)
wip/little-gl
Jörg Thalheim 3 years ago committed by github-actions[bot]
parent 7e9b0dff97
commit 58301adb35
  1. 12
      pkgs/development/tools/delve/default.nix

@ -1,4 +1,4 @@
{ lib, buildGoPackage, fetchFromGitHub }: { lib, buildGoPackage, fetchFromGitHub, makeWrapper }:
buildGoPackage rec { buildGoPackage rec {
pname = "delve"; pname = "delve";
@ -14,6 +14,16 @@ buildGoPackage rec {
sha256 = "sha256-bTVCasemE8Vyjcs8wZBiiXEsW3UBndjpPQ5bi+4vQkw="; sha256 = "sha256-bTVCasemE8Vyjcs8wZBiiXEsW3UBndjpPQ5bi+4vQkw=";
}; };
subPackages = [ "cmd/dlv" ];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
# fortify source breaks build since delve compiles with -O0
wrapProgram $out/bin/dlv \
--set "disableHardening" fortify
'';
meta = with lib; { meta = with lib; {
description = "debugger for the Go programming language"; description = "debugger for the Go programming language";
homepage = "https://github.com/derekparker/delve"; homepage = "https://github.com/derekparker/delve";

Loading…
Cancel
Save