qcachegrind: fix fatal Could not find the Qt platform plugin "xcb" in ""
(cherry picked from commit 16cbc80a9370b13db95a75b74d20e1d2beb578b3)
This commit is contained in:
parent
0d417a343c
commit
bfff2cbbcd
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, qmake, qtbase, perl, python, php, kcachegrind }:
|
{ lib, stdenv, qmake, qtbase, perl, python, php, kcachegrind, wrapQtAppsHook }:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = lib.replaceStrings ["kcachegrind"] ["qcachegrind"] kcachegrind.name;
|
name = lib.replaceStrings ["kcachegrind"] ["qcachegrind"] kcachegrind.name;
|
||||||
@ -10,7 +10,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ qtbase perl python php ];
|
buildInputs = [ qtbase perl python php ];
|
||||||
|
|
||||||
nativeBuildInputs = [ qmake ];
|
nativeBuildInputs = [ qmake wrapQtAppsHook ];
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
@ -33,6 +33,10 @@ in stdenv.mkDerivation {
|
|||||||
install -Dm644 kcachegrind/48-apps-kcachegrind.png "$out/share/icons/hicolor/48x48/apps/kcachegrind.png"
|
install -Dm644 kcachegrind/48-apps-kcachegrind.png "$out/share/icons/hicolor/48x48/apps/kcachegrind.png"
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
wrapQtApp "$out/bin/qcachegrind"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Qt GUI to visualize profiling data";
|
description = "A Qt GUI to visualize profiling data";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user