1#TODO@deliciouslytyped The tool seems to unnecessarily force mutable access for the debugedit `-l` feature
2{
3 fetchgit,
4 lib,
5 stdenv,
6 autoreconfHook,
7 pkg-config,
8 elfutils,
9 help2man,
10 util-linux,
11}:
12stdenv.mkDerivation rec {
13 pname = "debugedit";
14 version = "5.0";
15
16 nativeBuildInputs = [
17 autoreconfHook
18 pkg-config
19 help2man
20 ];
21 buildInputs = [ elfutils ];
22 nativeCheckInputs = [ util-linux ]; # Tests use `rev`
23
24 src = fetchgit {
25 url = "git://sourceware.org/git/debugedit.git";
26 rev = "debugedit-${version}";
27 sha256 = "VTZ7ybQT3DfKIfK0lH+JiehCJyJ+qpQ0bAn1/f+Pscs=";
28 };
29
30 preBuild = ''
31 patchShebangs scripts/find-debuginfo.in
32 '';
33
34 doCheck = true;
35
36 meta = with lib; {
37 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";
38 homepage = "https://sourceware.org/debugedit/";
39 license = licenses.gpl3Plus;
40 platforms = platforms.all;
41 maintainers = with maintainers; [ deliciouslytyped ];
42 };
43}