2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2024-01-02 11:29:13 +00:00
|
|
|
, fetchFromGitLab
|
2023-07-15 17:15:38 +00:00
|
|
|
, cmake
|
2024-01-02 11:29:13 +00:00
|
|
|
, elfutils
|
2023-07-15 17:15:38 +00:00
|
|
|
, extra-cmake-modules
|
|
|
|
, kitemmodels
|
|
|
|
, libiberty
|
|
|
|
, libdwarf
|
|
|
|
, libopcodes
|
2024-01-02 11:29:13 +00:00
|
|
|
, wrapQtAppsHook
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-11-06 00:33:48 +00:00
|
|
|
pname = "elf-dissector";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "unstable-2023-12-24";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "invent.kde.org";
|
|
|
|
owner = "sdk";
|
|
|
|
repo = "elf-dissector";
|
|
|
|
rev = "613538bd1d87ce72d5115646551a49cf7ff2ee34";
|
|
|
|
hash = "sha256-fQFGFw8nZHMs8J1W2CcHAJCdcvaY2l2/CySyBSsKpyE=";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
patches = [
|
|
|
|
./fix_build_for_src_lib_disassembler_disassembler.diff
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules wrapQtAppsHook ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildInputs = [ kitemmodels libiberty elfutils libopcodes libdwarf ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://invent.kde.org/sdk/elf-dissector";
|
|
|
|
description = "Tools for inspecting, analyzing and optimizing ELF files";
|
|
|
|
license = licenses.gpl2;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ ehmry philiptaron ];
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
}
|