diff options
author | Jan Malakhovski <oxij@oxij.org> | 2019-08-17 20:25:31 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2019-08-17 20:31:33 +0000 |
commit | 2326319b388f9c2511a2cfd392455593bdd479ba (patch) | |
tree | 972942603d473d6f2fb7402bb1a706d93933039b /pkgs/games/anki | |
parent | eb8e9736604f69b9366dc2bfbc15d4902099b8c7 (diff) |
anki: use wrapQtAppsHook from pyqtwebengine
Diffstat (limited to 'pkgs/games/anki')
-rw-r--r-- | pkgs/games/anki/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/games/anki/default.nix b/pkgs/games/anki/default.nix index 2530202a565e..8016aea9fd5d 100644 --- a/pkgs/games/anki/default.nix +++ b/pkgs/games/anki/default.nix @@ -92,6 +92,7 @@ buildPythonApplication rec { checkInputs = [ pytest glibcLocales nose ]; + nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ]; buildInputs = [ lame mplayer libpulseaudio ]; makeWrapperArgs = [ @@ -131,6 +132,8 @@ buildPythonApplication rec { env HOME=$TMP pytest --ignore tests/test_sync.py ''; + dontWrapQtApps = true; + installPhase = '' pp=$out/lib/${python.libPrefix}/site-packages @@ -158,6 +161,9 @@ buildPythonApplication rec { cp -rv anki aqt web $pp/ wrapPythonPrograms + for program in $out/bin/*; do + wrapQtApp "$program" + done # copy the manual into $doc cp -r ${manual}/share/doc/anki/html $doc/share/doc/anki @@ -167,7 +173,7 @@ buildPythonApplication rec { inherit manual; }; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://apps.ankiweb.net/"; description = "Spaced repetition flashcard program"; longDescription = '' |