1 { lib, stdenv, fetchFromGitHub, ctags, perl, elfutils, vtable-dumper }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1i00rfnddrrb9lb1l6ib19g3a76pyasl9lb7rqz2p998gav1gjp2";
15 substituteInPlace abi-dumper.pl \
16 --replace eu-readelf ${elfutils}/bin/eu-readelf \
17 --replace vtable-dumper ${vtable-dumper}/bin/vtable-dumper \
18 --replace '"ctags"' '"${ctags}/bin/ctags"'
21 buildInputs = [ elfutils ctags perl vtable-dumper ];
23 preBuild = "mkdir -p $out";
24 makeFlags = [ "prefix=$(out)" ];
27 homepage = "https://github.com/lvc/abi-dumper";
28 description = "Dump ABI of an ELF object containing DWARF debug info";
29 mainProgram = "abi-dumper";
30 license = licenses.lgpl21;
31 maintainers = [ maintainers.bhipple ];
32 platforms = platforms.all;