1 { lib, stdenv, fetchzip, qtbase, qtscxml, cmake, asciidoc
2 , docbook_xsl, json_c, mesa_glu, libglut, trace-cmd, pkg-config
3 , libtraceevent, libtracefs, freefont_ttf, wrapQtAppsHook, qtwayland
6 stdenv.mkDerivation (finalAttrs: {
11 url = "https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/snapshot/kernelshark-v${finalAttrs.version}.tar.gz";
12 hash = "sha256-KV8ahV2koX7OL1C42H5If14e7m54jv0DlZ1dNsVRUWE=";
17 nativeBuildInputs = [ pkg-config cmake wrapQtAppsHook ];
19 buildInputs = [ qtbase qtscxml qtwayland json_c mesa_glu libglut libtraceevent libtracefs trace-cmd ];
22 "-D_INSTALL_PREFIX=${placeholder "out"}"
23 "-D_POLKIT_INSTALL_PREFIX=${placeholder "out"}"
24 "-DPKG_CONGIG_DIR=${placeholder "out"}/lib/pkgconfig"
25 "-DTT_FONT_FILE=${freefont_ttf}/share/fonts/truetype/FreeSans.ttf"
29 description = "GUI for trace-cmd which is an interface for the Linux kernel ftrace subsystem";
30 homepage = "https://kernelshark.org/";
31 license = licenses.gpl2Only;
32 platforms = platforms.linux;
33 maintainers = with maintainers; [ basvandijk ];