mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
c9927ba895
Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
35 lines
918 B
Nix
35 lines
918 B
Nix
{ lib, buildGoPackage, fetchFromGitHub, makeWrapper }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "delve";
|
|
version = "1.6.1";
|
|
|
|
goPackagePath = "github.com/go-delve/delve";
|
|
excludedPackages = "\\(_fixtures\\|scripts\\|service/test\\)";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "go-delve";
|
|
repo = "delve";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bTVCasemE8Vyjcs8wZBiiXEsW3UBndjpPQ5bi+4vQkw=";
|
|
};
|
|
|
|
subPackages = [ "cmd/dlv" ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
# fortify source breaks build since delve compiles with -O0
|
|
wrapProgram $out/bin/dlv \
|
|
--prefix disableHardening " " fortify
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "debugger for the Go programming language";
|
|
homepage = "https://github.com/derekparker/delve";
|
|
maintainers = with maintainers; [ vdemeester ];
|
|
license = licenses.mit;
|
|
platforms = [ "x86_64-linux" ] ++ platforms.darwin;
|
|
};
|
|
}
|