evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ab / abi-dumper / package.nix
blob09b30b6c623195e6390cba57e4aba81c21994f88
1 { lib, stdenv, fetchFromGitHub, ctags, perl, elfutils, vtable-dumper }:
3 stdenv.mkDerivation rec {
4   pname = "abi-dumper";
5   version = "1.2";
7   src = fetchFromGitHub {
8     owner = "lvc";
9     repo = "abi-dumper";
10     rev = version;
11     sha256 = "1i00rfnddrrb9lb1l6ib19g3a76pyasl9lb7rqz2p998gav1gjp2";
12   };
14   patchPhase = ''
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"'
19   '';
21   buildInputs = [ elfutils ctags perl vtable-dumper ];
23   preBuild = "mkdir -p $out";
24   makeFlags = [ "prefix=$(out)" ];
26   meta = with lib; {
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;
33   };