vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / os-specific / linux / trace-cmd / kernelshark.nix
blob9f3d22c8a707730063e22ddc75724354083db682
1 { lib, stdenv, fetchzip, qtbase, qtscxml, cmake, asciidoc
2 , docbook_xsl, json_c, mesa_glu, libglut, trace-cmd, pkg-config
3 , libtraceevent, libtracefs, freefont_ttf, wrapQtAppsHook, qtwayland
4 }:
6 stdenv.mkDerivation (finalAttrs: {
7   pname = "kernelshark";
8   version = "2.3.1";
10   src = fetchzip {
11     url = "https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/snapshot/kernelshark-v${finalAttrs.version}.tar.gz";
12     hash = "sha256-KV8ahV2koX7OL1C42H5If14e7m54jv0DlZ1dNsVRUWE=";
13   };
15   outputs = [ "out" ];
17   nativeBuildInputs = [ pkg-config cmake wrapQtAppsHook ];
19   buildInputs = [ qtbase qtscxml qtwayland json_c mesa_glu libglut libtraceevent libtracefs trace-cmd ];
21   cmakeFlags = [
22     "-D_INSTALL_PREFIX=${placeholder "out"}"
23     "-D_POLKIT_INSTALL_PREFIX=${placeholder "out"}"
24     "-DPKG_CONGIG_DIR=${placeholder "out"}/lib/pkgconfig"
25     "-DTT_FONT_FILE=${freefont_ttf}/share/fonts/truetype/FreeSans.ttf"
26   ];
28   meta = with lib; {
29     description = "GUI for trace-cmd which is an interface for the Linux kernel ftrace subsystem";
30     homepage    = "https://kernelshark.org/";
31     license     = licenses.gpl2Only;
32     platforms   = platforms.linux;
33     maintainers = with maintainers; [ basvandijk ];
34   };