1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 00:25:24 +00:00
nixpkgs/pkgs/os-specific/linux/trace-cmd/kernelshark.nix

41 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, mkDerivation, fetchgit, qtbase, cmake, asciidoc, docbook_xsl, json_c, mesa_glu, freeglut, trace-cmd, pkg-config }:
2019-08-13 22:52:01 +01:00
mkDerivation {
2019-04-28 11:56:20 +01:00
pname = "kernelshark";
version = "1.1.0";
2019-04-28 11:56:20 +01:00
2019-07-27 19:02:58 +01:00
src = fetchgit (import ./src.nix);
2019-04-28 11:56:20 +01:00
2019-07-25 21:13:17 +01:00
patches = [ ./fix-Makefiles.patch ];
outputs = [ "out" "doc" ];
preConfigure = "pushd kernel-shark";
2019-04-28 11:56:20 +01:00
nativeBuildInputs = [ pkg-config cmake asciidoc ];
2019-04-28 11:56:20 +01:00
buildInputs = [ qtbase json_c mesa_glu freeglut ];
2019-04-28 11:56:20 +01:00
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"
2019-04-28 11:56:20 +01:00
];
2019-07-25 21:13:17 +01:00
preInstall = ''
popd
make install_doc_gui prefix=$doc \
FIND_MANPAGE_DOCBOOK_XSL=${docbook_xsl}/share/xml/docbook-xsl-nons/manpages/docbook.xsl
2019-07-25 21:13:17 +01:00
pushd kernel-shark/build
'';
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";
homepage = "https://kernelshark.org/";
2019-04-28 11:56:20 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ basvandijk ];
};
}