mendeley: use wrapQtApp
This commit is contained in:
parent
c62c7b8f5f
commit
7c8b042723
@ -106,6 +106,8 @@ mkDerivation {
|
|||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
|
||||||
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
dpkg-deb -x $src $out
|
dpkg-deb -x $src $out
|
||||||
mv $out/opt/mendeleydesktop/{bin,lib,share} $out
|
mv $out/opt/mendeleydesktop/{bin,lib,share} $out
|
||||||
@ -115,7 +117,7 @@ mkDerivation {
|
|||||||
--set-rpath ${stdenv.lib.makeLibraryPath deps}:$out/lib \
|
--set-rpath ${stdenv.lib.makeLibraryPath deps}:$out/lib \
|
||||||
$out/bin/mendeleydesktop
|
$out/bin/mendeleydesktop
|
||||||
|
|
||||||
wrapProgram $out/bin/mendeleydesktop \
|
wrapQtApp $out/bin/mendeleydesktop \
|
||||||
--add-flags "--unix-distro-build" \
|
--add-flags "--unix-distro-build" \
|
||||||
${stdenv.lib.optionalString autorunLinkHandler # ignore errors installing the link handler
|
${stdenv.lib.optionalString autorunLinkHandler # ignore errors installing the link handler
|
||||||
''--run "$out/bin/install-mendeley-link-handler.sh $out/bin/mendeleydesktop ||:"''}
|
''--run "$out/bin/install-mendeley-link-handler.sh $out/bin/mendeleydesktop ||:"''}
|
||||||
|
Loading…
Reference in New Issue
Block a user