about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/vtable-dumper/default.nix
blob: deed8e3af962e3f8b9a7102d1dc4cd087219b314 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, stdenv, fetchFromGitHub, libelf }:

stdenv.mkDerivation rec {
  pname = "vtable-dumper";
  version = "1.2";

  src = fetchFromGitHub {
    owner = "lvc";
    repo = "vtable-dumper";
    rev = version;
    sha256 = "0sl7lnjr2l4c2f7qaazvpwpzsp4gckkvccfam88wcq9f7j9xxbyp";
  };

  buildInputs = [ libelf ];
  makeFlags = [ "prefix=$(out)" ];

  meta = with lib; {
    homepage = "https://github.com/lvc/vtable-dumper";
    description = "A tool to list content of virtual tables in a C++ shared library";
    mainProgram = "vtable-dumper";
    license = licenses.lgpl21;
    maintainers = [ maintainers.bhipple ];
    platforms = platforms.all;
  };
}