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

37 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, mkDerivation, fetchgit, qtbase, cmake, asciidoc
, docbook_xsl, json_c, mesa_glu, freeglut, trace-cmd, pkg-config
, libtraceevent, libtracefs, freefont_ttf
}:
mkDerivation rec {
2019-04-28 11:56:20 +01:00
pname = "kernelshark";
version = "2.0.2";
2019-04-28 11:56:20 +01:00
src = fetchgit {
url = "https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/";
rev = "kernelshark-v${version}";
sha256 = "0vy5wa1kccrxr973l870jy5hl6lac7sk3zyg3hxrwmivin1yf0cv";
};
2019-04-28 11:56:20 +01:00
outputs = [ "out" ];
2019-07-25 21:13:17 +01:00
nativeBuildInputs = [ pkg-config cmake ];
2019-04-28 11:56:20 +01:00
buildInputs = [ qtbase json_c mesa_glu freeglut libtraceevent libtracefs trace-cmd ];
2019-04-28 11:56:20 +01:00
cmakeFlags = [
"-D_INSTALL_PREFIX=${placeholder "out"}"
"-D_POLKIT_INSTALL_PREFIX=${placeholder "out"}"
"-DPKG_CONGIG_DIR=${placeholder "out"}/lib/pkgconfig"
"-DTT_FONT_FILE=${freefont_ttf}/share/fonts/truetype/FreeSans.ttf"
2019-04-28 11:56:20 +01:00
];
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 ];
};
}