2021-02-05 17:12:51 +00:00
|
|
|
{ lib, mkDerivation, fetchgit, qtbase, cmake, asciidoc, docbook_xsl, json_c, mesa_glu, freeglut, trace-cmd, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
mkDerivation {
|
|
|
|
pname = "kernelshark";
|
|
|
|
version = "1.1.0";
|
|
|
|
|
|
|
|
src = fetchgit (import ./src.nix);
|
|
|
|
|
|
|
|
patches = [ ./fix-Makefiles.patch ];
|
|
|
|
|
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
|
|
|
preConfigure = "pushd kernel-shark";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config cmake asciidoc ];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase json_c mesa_glu freeglut ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-D_INSTALL_PREFIX=${placeholder "out"}"
|
|
|
|
"-DTRACECMD_BIN_DIR=${trace-cmd}/bin"
|
|
|
|
"-DTRACECMD_INCLUDE_DIR=${trace-cmd.dev}/include"
|
|
|
|
"-DTRACECMD_LIBRARY=${trace-cmd.lib}/lib/trace-cmd/libtracecmd.a"
|
|
|
|
"-DTRACEEVENT_LIBRARY=${trace-cmd.lib}/lib/traceevent/libtraceevent.a"
|
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
popd
|
|
|
|
make install_doc_gui prefix=$doc \
|
|
|
|
FIND_MANPAGE_DOCBOOK_XSL=${docbook_xsl}/share/xml/docbook-xsl-nons/manpages/docbook.xsl
|
|
|
|
pushd kernel-shark/build
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|