qcachegrind: fix fatal Could not find the Qt platform plugin "xcb" in ""

launchpad/nixpkgs/master
Bjørn Forsman 3 years ago
parent a655b71201
commit 16cbc80a93
  1. 8
      pkgs/development/tools/analysis/qcachegrind/default.nix

@ -1,4 +1,4 @@
{ lib, stdenv, qmake, qtbase, perl, python, php, kcachegrind }:
{ lib, stdenv, qmake, qtbase, perl, python, php, kcachegrind, wrapQtAppsHook }:
let
name = lib.replaceStrings ["kcachegrind"] ["qcachegrind"] kcachegrind.name;
@ -10,7 +10,7 @@ in stdenv.mkDerivation {
buildInputs = [ qtbase perl python php ];
nativeBuildInputs = [ qmake ];
nativeBuildInputs = [ qmake wrapQtAppsHook ];
dontWrapQtApps = true;
@ -33,6 +33,10 @@ in stdenv.mkDerivation {
install -Dm644 kcachegrind/48-apps-kcachegrind.png "$out/share/icons/hicolor/48x48/apps/kcachegrind.png"
'');
preFixup = ''
wrapQtApp "$out/bin/qcachegrind"
'';
meta = with lib; {
description = "A Qt GUI to visualize profiling data";
license = licenses.gpl2;

Loading…
Cancel
Save