2021-07-17 21:14:59 +00:00
|
|
|
#TODO@deliciouslytyped The tool seems to unnecessarily force mutable access for the debugedit `-l` feature
|
|
|
|
{fetchgit, lib, stdenv, autoreconfHook, pkg-config, elfutils, help2man, util-linux}:
|
2021-12-06 16:07:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "debugedit";
|
|
|
|
version = "5.0";
|
2021-07-17 21:14:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config help2man ];
|
|
|
|
buildInputs = [ elfutils ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ util-linux ]; # Tests use `rev`
|
2021-07-17 21:14:59 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://sourceware.org/git/debugedit.git";
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "debugedit-${version}";
|
|
|
|
sha256 = "VTZ7ybQT3DfKIfK0lH+JiehCJyJ+qpQ0bAn1/f+Pscs=";
|
2021-07-17 21:14:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
patchShebangs scripts/find-debuginfo.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Provides programs and scripts for creating debuginfo and source file distributions, collect build-ids and rewrite source paths in DWARF data for debugging, tracing and profiling";
|
|
|
|
homepage = "https://sourceware.org/debugedit/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ deliciouslytyped ];
|
|
|
|
};
|
|
|
|
}
|