33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
{ stdenv, mkDerivation, fetchgit, qtbase, cmake, json_c, mesa_glu, freeglut, trace-cmd, pkg-config, doxygen, graphviz }:
|
|
let
|
|
srcSpec = import ./src.nix;
|
|
shortRev = builtins.substring 0 7 srcSpec.rev;
|
|
in mkDerivation rec {
|
|
pname = "kernelshark";
|
|
version = "0.9.8-${shortRev}";
|
|
|
|
src = fetchgit srcSpec;
|
|
|
|
sourceRoot = "trace-cmd-${shortRev}/kernel-shark";
|
|
|
|
nativeBuildInputs = [ cmake doxygen graphviz ];
|
|
|
|
buildInputs = [ qtbase json_c mesa_glu freeglut pkg-config ];
|
|
|
|
cmakeFlags = [
|
|
"-D_INSTALL_PREFIX=${placeholder "out"}"
|
|
"-DTRACECMD_EXECUTABLE=${trace-cmd}/bin/trace-cmd"
|
|
"-DTRACECMD_INCLUDE_DIR=${trace-cmd.dev}/include"
|
|
"-DTRACECMD_LIBRARY=${trace-cmd.lib}/lib/libtracecmd.a"
|
|
"-DTRACEEVENT_LIBRARY=${trace-cmd.lib}/lib/libtraceevent.a"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "GUI for trace-cmd which is an interface for the Linux kernel ftrace subsystem";
|
|
homepage = http://kernelshark.org/;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ basvandijk ];
|
|
};
|
|
}
|