git.iko.soy/typeable/nixpkgs
on master help sign in
kernelshark: 1.2 -> 2.0.2

Relevant upstream changes: - Sources were moved from trace-cmd repository to a new repository. - Makefile for building documentation is broken. Therefore, we don't build documentation. After upstream fixes it, we can build it again.

commit393fc1f7ee8204aa335e57e4b8bea9dccf24d4ee authorMichal Sojka <michal.sojka@cvut.cz> dateSun 12 Sep 2021, 23:11 (5 years ago) parent3d249d1
1 file changed+15−24
pkgs/os-specific/linux/trace-cmd/kernelshark.nix+15−24
pkgs/os-specific/linux/trace-cmd/kernelshark.nix+15−24
@@ -1,40 +1,31 @@
1−{ lib, mkDerivation, fetchgit, qtbase, cmake, asciidoc, docbook_xsl, json_c, mesa_glu, freeglut, trace-cmd, pkg-config }:
1+{ lib, mkDerivation, fetchgit, qtbase, cmake, asciidoc
2+, docbook_xsl, json_c, mesa_glu, freeglut, trace-cmd, pkg-config
3+, libtraceevent, libtracefs, freefont_ttf
4+}:
5+
26mkDerivation rec {
37 pname = "kernelshark";
4− version = "1.2";
8+ version = "2.0.2";
59
610 src = fetchgit {
7− url = "git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/";
8− rev = "kernelshark-v${version}";
9− sha256 = "0wzzm2imk9n94v96v6sbvbff6j47lz4qj0snhiyv3nj3slg0anvh";
11+ url = "https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/";
12+ rev = "kernelshark-v${version}";
13+ sha256 = "0vy5wa1kccrxr973l870jy5hl6lac7sk3zyg3hxrwmivin1yf0cv";
1014 };
1115
12− patches = [ ./fix-Makefiles.patch ];
13−
14− outputs = [ "out" "doc" ];
16+ outputs = [ "out" ];
1517
16− preConfigure = "pushd kernel-shark";
18+ nativeBuildInputs = [ pkg-config cmake ];
1719
18− nativeBuildInputs = [ pkg-config cmake asciidoc ];
19−
20− buildInputs = [ qtbase json_c mesa_glu freeglut ];
20+ buildInputs = [ qtbase json_c mesa_glu freeglut libtraceevent libtracefs trace-cmd ];
2121
2222 cmakeFlags = [
2323 "-D_INSTALL_PREFIX=${placeholder "out"}"
24− "-DTRACECMD_BIN_DIR=${trace-cmd}/bin"
25− "-DTRACECMD_INCLUDE_DIR=${trace-cmd.dev}/include"
26− "-DTRACECMD_LIBRARY=${trace-cmd.lib}/lib/trace-cmd/libtracecmd.a"
27− "-DTRACEEVENT_LIBRARY=${trace-cmd.lib}/lib/traceevent/libtraceevent.a"
28− "-DTRACEFS_LIBRARY=${trace-cmd.lib}/lib/tracefs/libtracefs.a"
24+ "-D_POLKIT_INSTALL_PREFIX=${placeholder "out"}"
25+ "-DPKG_CONGIG_DIR=${placeholder "out"}/lib/pkgconfig"
26+ "-DTT_FONT_FILE=${freefont_ttf}/share/fonts/truetype/FreeSans.ttf"
2927 ];
3028
31− preInstall = ''
32− popd
33− make install_doc_gui prefix=$doc \
34− FIND_MANPAGE_DOCBOOK_XSL=${docbook_xsl}/share/xml/docbook-xsl-nons/manpages/docbook.xsl
35− pushd kernel-shark/build
36− '';
37−
3829 meta = with lib; {
3930 description = "GUI for trace-cmd which is an interface for the Linux kernel ftrace subsystem";
4031 homepage = "https://kernelshark.org/";