Skip to content

Commit

Permalink
qcachegrind: Fix build with Qt 5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Feb 3, 2018
1 parent a25e6e1 commit 97be994
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/development/tools/analysis/qcachegrind/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, qmake, qtbase, perl, python, php, kcachegrind }:
{ stdenv, fetchurl, cmake, qmake, qtbase, perl, python, php, kcachegrind, fetchpatch }:

let
name = stdenv.lib.replaceStrings ["kcachegrind"] ["qcachegrind"] kcachegrind.name;
Expand All @@ -12,6 +12,14 @@ in stdenv.mkDerivation rec {

nativeBuildInputs = [ qmake ];

patches = [
(fetchpatch {
name = "fix-qt5_10-build.patch";
url = https://github.com/KDE/kcachegrind/commit/c41607a.patch;
sha256 = "00kh5im3hpcarch8rc2dsgxsajfmd8vd7rry9x6mxrbkgr4ifq8y";
})
];

postInstall = ''
mkdir -p $out/bin
cp -p converters/dprof2calltree $out/bin/dprof2calltree
Expand Down

0 comments on commit 97be994

Please sign in to comment.