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