2021-05-31 16:40:17 +02:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, makeWrapper }:
|
2016-11-23 23:53:07 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "delve";
|
2021-05-20 07:25:34 +02:00
|
|
|
version = "1.6.1";
|
2016-11-23 23:53:07 +01:00
|
|
|
|
2019-03-05 18:50:17 +01:00
|
|
|
goPackagePath = "github.com/go-delve/delve";
|
2017-03-01 13:48:04 +01:00
|
|
|
excludedPackages = "\\(_fixtures\\|scripts\\|service/test\\)";
|
2016-11-23 23:53:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-03-05 18:50:17 +01:00
|
|
|
owner = "go-delve";
|
2016-11-23 23:53:07 +01:00
|
|
|
repo = "delve";
|
|
|
|
rev = "v${version}";
|
2021-05-20 07:25:34 +02:00
|
|
|
sha256 = "sha256-bTVCasemE8Vyjcs8wZBiiXEsW3UBndjpPQ5bi+4vQkw=";
|
2016-11-23 23:53:07 +01:00
|
|
|
};
|
|
|
|
|
2021-05-31 16:40:17 +02:00
|
|
|
subPackages = [ "cmd/dlv" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# fortify source breaks build since delve compiles with -O0
|
|
|
|
wrapProgram $out/bin/dlv \
|
2021-06-01 07:23:50 +02:00
|
|
|
--prefix disableHardening " " fortify
|
2021-05-31 16:40:17 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-23 13:26:19 +01:00
|
|
|
meta = with lib; {
|
2016-11-23 23:53:07 +01:00
|
|
|
description = "debugger for the Go programming language";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/derekparker/delve";
|
2018-01-02 11:23:00 +01:00
|
|
|
maintainers = with maintainers; [ vdemeester ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = [ "x86_64-linux" ] ++ platforms.darwin;
|
2016-11-23 23:53:07 +01:00
|
|
|
};
|
|
|
|
}
|