anki: use wrapQtAppsHook from pyqtwebengine

This commit is contained in:
Jan Malakhovski 2019-08-17 20:25:31 +00:00
parent eb8e973660
commit 2326319b38

View File

@ -92,6 +92,7 @@ buildPythonApplication rec {
checkInputs = [ pytest glibcLocales nose ]; checkInputs = [ pytest glibcLocales nose ];
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
buildInputs = [ lame mplayer libpulseaudio ]; buildInputs = [ lame mplayer libpulseaudio ];
makeWrapperArgs = [ makeWrapperArgs = [
@ -131,6 +132,8 @@ buildPythonApplication rec {
env HOME=$TMP pytest --ignore tests/test_sync.py env HOME=$TMP pytest --ignore tests/test_sync.py
''; '';
dontWrapQtApps = true;
installPhase = '' installPhase = ''
pp=$out/lib/${python.libPrefix}/site-packages pp=$out/lib/${python.libPrefix}/site-packages
@ -158,6 +161,9 @@ buildPythonApplication rec {
cp -rv anki aqt web $pp/ cp -rv anki aqt web $pp/
wrapPythonPrograms wrapPythonPrograms
for program in $out/bin/*; do
wrapQtApp "$program"
done
# copy the manual into $doc # copy the manual into $doc
cp -r ${manual}/share/doc/anki/html $doc/share/doc/anki cp -r ${manual}/share/doc/anki/html $doc/share/doc/anki
@ -167,7 +173,7 @@ buildPythonApplication rec {
inherit manual; inherit manual;
}; };
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://apps.ankiweb.net/"; homepage = "https://apps.ankiweb.net/";
description = "Spaced repetition flashcard program"; description = "Spaced repetition flashcard program";
longDescription = '' longDescription = ''