2021-10-28 06:52:43 +00:00
|
|
|
{ lib, mkDerivation, fetchgit, qtbase, cmake, asciidoc
|
|
|
|
, docbook_xsl, json_c, mesa_glu, freeglut, trace-cmd, pkg-config
|
|
|
|
, libtraceevent, libtracefs, freefont_ttf
|
|
|
|
}:
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "kernelshark";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
src = fetchgit {
|
2021-10-28 06:52:43 +00:00
|
|
|
url = "https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/";
|
|
|
|
rev = "kernelshark-v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-V25IzPDOt6V03wgIa/AJ0T8mRaGmXYuMCcvbSOKleY0=";
|
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
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
buildInputs = [ qtbase json_c mesa_glu freeglut 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/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ basvandijk ];
|
|
|
|
};
|
|
|
|
}
|