1 { lib, stdenv, qmake, qtbase, perl, php, kcachegrind, wrapQtAppsHook }:
5 version = kcachegrind.version;
9 buildInputs = [ qtbase perl php ];
11 nativeBuildInputs = [ qmake wrapQtAppsHook ];
13 dontWrapQtApps = true;
17 cp -p converters/dprof2calltree $out/bin/dprof2calltree
18 cp -p converters/memprof2calltree $out/bin/memprof2calltree
19 cp -p converters/op2calltree $out/bin/op2calltree
20 cp -p converters/pprof2calltree $out/bin/pprof2calltree
22 '' + (if stdenv.isDarwin then ''
23 mkdir -p $out/Applications
24 cp cgview/cgview.app/Contents/MacOS/cgview $out/bin
25 cp -a qcachegrind/qcachegrind.app $out/Applications
27 install qcachegrind/qcachegrind cgview/cgview -t "$out/bin"
28 install -Dm644 qcachegrind/qcachegrind.desktop -t "$out/share/applications"
29 install -Dm644 kcachegrind/32-apps-kcachegrind.png "$out/share/icons/hicolor/32x32/apps/kcachegrind.png"
30 install -Dm644 kcachegrind/48-apps-kcachegrind.png "$out/share/icons/hicolor/48x48/apps/kcachegrind.png"
34 wrapQtApp "$out/bin/qcachegrind"
38 broken = stdenv.isDarwin;
39 description = "A Qt GUI to visualize profiling data";
40 license = licenses.gpl2Plus;
41 platforms = platforms.unix;
42 maintainers = with maintainers; [ periklis ];