From 36aabb2bda4ca144718c5304f718626dd153e59c Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Mon, 2 Jul 2018 16:00:21 +0900 Subject: [PATCH] wireshark: export QT_PLUGIN_PATH in shellHook ...else program fails with: This application failed to start because it could not find or load the Qt platform plugin "xcb" in "". --- pkgs/applications/networking/sniffers/wireshark/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/networking/sniffers/wireshark/default.nix b/pkgs/applications/networking/sniffers/wireshark/default.nix index ef1dade4dddd50..4fb0afd56fdc6b 100644 --- a/pkgs/applications/networking/sniffers/wireshark/default.nix +++ b/pkgs/applications/networking/sniffers/wireshark/default.nix @@ -91,6 +91,7 @@ in stdenv.mkDerivation { shellHook = '' # to be able to run the resulting binary export WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 + export QT_PLUGIN_PATH=${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix} ''; meta = with stdenv.lib; {