2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ctags, perl, elfutils, vtable-dumper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "abi-dumper";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lvc";
|
|
|
|
repo = "abi-dumper";
|
|
|
|
rev = version;
|
2020-11-24 20:58:05 +00:00
|
|
|
sha256 = "1i00rfnddrrb9lb1l6ib19g3a76pyasl9lb7rqz2p998gav1gjp2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace abi-dumper.pl \
|
|
|
|
--replace eu-readelf ${elfutils}/bin/eu-readelf \
|
|
|
|
--replace vtable-dumper ${vtable-dumper}/bin/vtable-dumper \
|
|
|
|
--replace '"ctags"' '"${ctags}/bin/ctags"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ elfutils ctags perl vtable-dumper ];
|
|
|
|
|
|
|
|
preBuild = "mkdir -p $out";
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/lvc/abi-dumper";
|
|
|
|
description = "Dump ABI of an ELF object containing DWARF debug info";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "abi-dumper";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.bhipple ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|