Skip to content

Commit

Permalink
nextcloud-client: fix qt error at startup
Browse files Browse the repository at this point in the history
The QT_PLUGIN_PATH couldn't find the needed xcb plugin.

See also #51044

(cherry picked from commit b525493)
  • Loading branch information
Ma27 committed Jan 27, 2019
1 parent 09218fe commit 68c0e95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/applications/networking/nextcloud-client/default.nix
Expand Up @@ -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 ];

Expand All @@ -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; {
Expand Down

0 comments on commit 68c0e95

Please sign in to comment.