qcachegrind: init at 16.12.3
This commit is contained in:
parent
47183c813e
commit
a92dfe78e9
43
pkgs/development/tools/analysis/qcachegrind/default.nix
Normal file
43
pkgs/development/tools/analysis/qcachegrind/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ stdenv, fetchurl, cmake, qt, qmakeHook, makeQtWrapper, perl, python, php }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "qcachegrind-${version}";
|
||||||
|
version = "16.12.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://download.kde.org/stable/applications/${version}/src/kcachegrind-${version}.tar.xz";
|
||||||
|
sha256 = "109y94nz96izzsjjdpj9c6g344rcr86srp5w0433mssbyvym4x7q";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ qt.qtbase perl python php ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ qmakeHook makeQtWrapper ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp -p converters/dprof2calltree $out/bin/dprof2calltree
|
||||||
|
cp -p converters/hotshot2calltree.cmake $out/bin/hotshot2calltree
|
||||||
|
cp -p converters/memprof2calltree $out/bin/memprof2calltree
|
||||||
|
cp -p converters/op2calltree $out/bin/op2calltree
|
||||||
|
cp -p converters/pprof2calltree $out/bin/pprof2calltree
|
||||||
|
chmod -R +x $out/bin/
|
||||||
|
'' + (if stdenv.isDarwin then ''
|
||||||
|
mkdir -p $out/Applications
|
||||||
|
cp cgview/cgview.app/Contents/MacOS/cgview $out/bin
|
||||||
|
cp -a qcachegrind/qcachegrind.app $out/Applications
|
||||||
|
wrapQtProgram $out/Applications/qcachegrind.app/Contents/MacOS/qcachegrind
|
||||||
|
'' else ''
|
||||||
|
install qcachegrind/qcachegrind cgview/cgview -t "$out/bin"
|
||||||
|
wrapQtProgram "$out/bin/qcachegrind"
|
||||||
|
install -Dm644 qcachegrind/qcachegrind.desktop -t "$out/share/applications"
|
||||||
|
install -Dm644 kcachegrind/hi32-app-kcachegrind.png "$out/share/icons/hicolor/32x32/apps/kcachegrind.png"
|
||||||
|
install -Dm644 kcachegrind/hi48-app-kcachegrind.png "$out/share/icons/hicolor/48x48/apps/kcachegrind.png"
|
||||||
|
'');
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A Qt GUI to visualize profiling data";
|
||||||
|
license = licenses.gpl2;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ periklis ];
|
||||||
|
};
|
||||||
|
}
|
@ -6945,6 +6945,10 @@ with pkgs;
|
|||||||
|
|
||||||
valkyrie = callPackage ../development/tools/analysis/valkyrie { };
|
valkyrie = callPackage ../development/tools/analysis/valkyrie { };
|
||||||
|
|
||||||
|
qcachegrind = libsForQt57.callPackage ../development/tools/analysis/qcachegrind {
|
||||||
|
qt = qt57;
|
||||||
|
};
|
||||||
|
|
||||||
verasco = ocaml-ng.ocamlPackages_4_02.verasco.override {
|
verasco = ocaml-ng.ocamlPackages_4_02.verasco.override {
|
||||||
coq = coq_8_4;
|
coq = coq_8_4;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user