Skip to content

Commit bfff2cb

Browse files
committed
qcachegrind: fix fatal Could not find the Qt platform plugin "xcb" in ""
(cherry picked from commit 16cbc80)
1 parent 0d417a3 commit bfff2cb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkgs/development/tools/analysis/qcachegrind/default.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, stdenv, qmake, qtbase, perl, python, php, kcachegrind }:
1+
{ lib, stdenv, qmake, qtbase, perl, python, php, kcachegrind, wrapQtAppsHook }:
22

33
let
44
name = lib.replaceStrings ["kcachegrind"] ["qcachegrind"] kcachegrind.name;
@@ -10,7 +10,7 @@ in stdenv.mkDerivation {
1010

1111
buildInputs = [ qtbase perl python php ];
1212

13-
nativeBuildInputs = [ qmake ];
13+
nativeBuildInputs = [ qmake wrapQtAppsHook ];
1414

1515
dontWrapQtApps = true;
1616

@@ -33,6 +33,10 @@ in stdenv.mkDerivation {
3333
install -Dm644 kcachegrind/48-apps-kcachegrind.png "$out/share/icons/hicolor/48x48/apps/kcachegrind.png"
3434
'');
3535

36+
preFixup = ''
37+
wrapQtApp "$out/bin/qcachegrind"
38+
'';
39+
3640
meta = with lib; {
3741
description = "A Qt GUI to visualize profiling data";
3842
license = licenses.gpl2;

0 commit comments

Comments
 (0)