qcachegrind: Fix build with Qt 5.10

wip/yesman
adisbladis 6 years ago
parent a25e6e1d96
commit 97be994d6a
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5
  1. 10
      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;
@ -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

Loading…
Cancel
Save