2021-09-12 23:11:02 +02:00
|
|
|
{ lib, mkDerivation, fetchgit, qtbase, cmake, asciidoc
|
|
|
|
, docbook_xsl, json_c, mesa_glu, freeglut, trace-cmd, pkg-config
|
|
|
|
, libtraceevent, libtracefs, freefont_ttf
|
|
|
|
}:
|
|
|
|
|
2021-03-11 13:12:34 +01:00
|
|
|
mkDerivation rec {
|
2019-04-28 12:56:20 +02:00
|
|
|
pname = "kernelshark";
|
2021-09-12 23:11:02 +02:00
|
|
|
version = "2.0.2";
|
2019-04-28 12:56:20 +02:00
|
|
|
|
2021-03-11 13:12:34 +01:00
|
|
|
src = fetchgit {
|
2021-09-12 23:11:02 +02:00
|
|
|
url = "https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/";
|
|
|
|
rev = "kernelshark-v${version}";
|
|
|
|
sha256 = "0vy5wa1kccrxr973l870jy5hl6lac7sk3zyg3hxrwmivin1yf0cv";
|
2021-03-11 13:12:34 +01:00
|
|
|
};
|
2019-04-28 12:56:20 +02:00
|
|
|
|
2021-09-12 23:11:02 +02:00
|
|
|
outputs = [ "out" ];
|
2019-07-25 22:13:17 +02:00
|
|
|
|
2021-09-12 23:11:02 +02:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2019-04-28 12:56:20 +02:00
|
|
|
|
2021-09-12 23:11:02 +02:00
|
|
|
buildInputs = [ qtbase json_c mesa_glu freeglut libtraceevent libtracefs trace-cmd ];
|
2019-04-28 12:56:20 +02:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-D_INSTALL_PREFIX=${placeholder "out"}"
|
2021-09-12 23:11:02 +02:00
|
|
|
"-D_POLKIT_INSTALL_PREFIX=${placeholder "out"}"
|
|
|
|
"-DPKG_CONGIG_DIR=${placeholder "out"}/lib/pkgconfig"
|
|
|
|
"-DTT_FONT_FILE=${freefont_ttf}/share/fonts/truetype/FreeSans.ttf"
|
2019-04-28 12:56:20 +02:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-04-28 12:56:20 +02:00
|
|
|
description = "GUI for trace-cmd which is an interface for the Linux kernel ftrace subsystem";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://kernelshark.org/";
|
2019-04-28 12:56:20 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ basvandijk ];
|
|
|
|
};
|
|
|
|
}
|