kernelshark: install documentation

This commit is contained in:
Bas van Dijk
2019-07-25 22:13:17 +02:00
parent 4542cca0b2
commit 585de35cd6
2 changed files with 21 additions and 6 deletions
@@ -8,7 +8,11 @@ in mkDerivation rec {
src = fetchgit srcSpec;
sourceRoot = "trace-cmd-${shortRev}/kernel-shark";
patches = [ ./fix-Makefiles.patch ];
outputs = [ "out" "doc" ];
preConfigure = "pushd kernel-shark";
nativeBuildInputs = [ cmake doxygen graphviz ];
@@ -22,6 +26,12 @@ in mkDerivation rec {
"-DTRACEEVENT_LIBRARY=${trace-cmd.lib}/lib/libtraceevent.a"
];
preInstall = ''
popd
make install_gui_docs prefix=$doc
pushd kernel-shark/build
'';
meta = with stdenv.lib; {
description = "GUI for trace-cmd which is an interface for the Linux kernel ftrace subsystem";
homepage = http://kernelshark.org/;