From 68c0e95383bebde5196d2226a389977a3bca6b6d Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 22 Jan 2019 22:31:52 +0100 Subject: [PATCH] nextcloud-client: fix qt error at startup The QT_PLUGIN_PATH couldn't find the needed xcb plugin. See also #51044 (cherry picked from commit b52549325311f75d2fe478bd4223e92c7edb3473) --- pkgs/applications/networking/nextcloud-client/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/nextcloud-client/default.nix b/pkgs/applications/networking/nextcloud-client/default.nix index 8f554ab18958f7..4eaf2fa2b911b5 100644 --- a/pkgs/applications/networking/nextcloud-client/default.nix +++ b/pkgs/applications/networking/nextcloud-client/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { fetchSubmodules = true; }; - nativeBuildInputs = [ pkgconfig cmake ]; + nativeBuildInputs = [ pkgconfig cmake makeWrapper ]; buildInputs = [ qtbase qtwebkit qtkeychain qttools qtwebengine sqlite openssl_1_1_0.out pcre inotify-tools ]; @@ -33,6 +33,9 @@ stdenv.mkDerivation rec { postInstall = '' sed -i 's/\(Icon.*\)=nextcloud/\1=Nextcloud/g' \ $out/share/applications/nextcloud.desktop + + wrapProgram "$out/bin/nextcloud" \ + --prefix QT_PLUGIN_PATH : ${qtbase}/${qtbase.qtPluginPrefix} ''; meta = with stdenv.lib; {