2024-06-05 15:53:02 +00:00
|
|
|
{ lib, stdenv, fetchzip, qtbase, qtscxml, cmake, asciidoc
|
2024-07-27 06:49:29 +00:00
|
|
|
, docbook_xsl, json_c, mesa_glu, libglut, trace-cmd, pkg-config
|
2024-06-05 15:53:02 +00:00
|
|
|
, libtraceevent, libtracefs, freefont_ttf, wrapQtAppsHook, qtwayland
|
2021-10-28 06:52:43 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "kernelshark";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
src = fetchzip {
|
2024-06-05 15:53:02 +00:00
|
|
|
url = "https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/snapshot/kernelshark-v${finalAttrs.version}.tar.gz";
|
|
|
|
hash = "sha256-KV8ahV2koX7OL1C42H5If14e7m54jv0DlZ1dNsVRUWE=";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
outputs = [ "out" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
buildInputs = [ qtbase qtscxml qtwayland json_c mesa_glu libglut libtraceevent libtracefs trace-cmd ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-D_INSTALL_PREFIX=${placeholder "out"}"
|
2021-10-28 06:52:43 +00:00
|
|
|
"-D_POLKIT_INSTALL_PREFIX=${placeholder "out"}"
|
|
|
|
"-DPKG_CONGIG_DIR=${placeholder "out"}/lib/pkgconfig"
|
|
|
|
"-DTT_FONT_FILE=${freefont_ttf}/share/fonts/truetype/FreeSans.ttf"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "GUI for trace-cmd which is an interface for the Linux kernel ftrace subsystem";
|
|
|
|
homepage = "https://kernelshark.org/";
|
2024-06-24 18:47:55 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ basvandijk ];
|
|
|
|
};
|
2024-06-05 15:53:02 +00:00
|
|
|
})
|