1#TODO@deliciouslytyped The tool seems to unnecessarily force mutable access for the debugedit `-l` feature
2{fetchgit, lib, stdenv, autoreconfHook, pkg-config, elfutils, help2man, util-linux}:
3stdenv.mkDerivation {
4 name = "debugedit";
5 version = "unstable-2021-07-05";
6
7 nativeBuildInputs = [ autoreconfHook pkg-config help2man ];
8 buildInputs = [ elfutils ];
9 checkInputs = [ util-linux ]; # Tests use `rev`
10
11 src = fetchgit {
12 url = "git://sourceware.org/git/debugedit.git";
13 rev = "e04296ddf34cbc43303d7af32ab3a73ac20af51a";
14 sha256 = "19cjkpzhdn2z6fl7xw8556m6kyrb7nxwbz2rmiv2rynyp74yg44z";
15 };
16
17 preBuild = ''
18 patchShebangs scripts/find-debuginfo.in
19 '';
20
21 doCheck = true;
22
23 meta = with lib; {
24 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";
25 homepage = "https://sourceware.org/debugedit/";
26 license = licenses.gpl3Plus;
27 platforms = platforms.all;
28 maintainers = with maintainers; [ deliciouslytyped ];
29 };
30}