mendeley: use wrapQtApp

This commit is contained in:
worldofpeace 2019-11-13 19:03:45 -05:00
parent c62c7b8f5f
commit 7c8b042723

View File

@ -106,6 +106,8 @@ mkDerivation {
dontUnpack = true;
dontWrapQtApps = true;
installPhase = ''
dpkg-deb -x $src $out
mv $out/opt/mendeleydesktop/{bin,lib,share} $out
@ -115,7 +117,7 @@ mkDerivation {
--set-rpath ${stdenv.lib.makeLibraryPath deps}:$out/lib \
$out/bin/mendeleydesktop
wrapProgram $out/bin/mendeleydesktop \
wrapQtApp $out/bin/mendeleydesktop \
--add-flags "--unix-distro-build" \
${stdenv.lib.optionalString autorunLinkHandler # ignore errors installing the link handler
''--run "$out/bin/install-mendeley-link-handler.sh $out/bin/mendeleydesktop ||:"''}