anki: use wrapQtAppsHook from pyqtwebengine
This commit is contained in:
parent
eb8e973660
commit
2326319b38
@ -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 = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user