anchor.diff:        chmod 755 $out/bin/anki
   
         cp -v anki.desktop $out/share/applications/
  -      cp -v README* LICENSE* $out/share/doc/anki/
  -      cp -v anki.1 $out/share/man/man1/
  +      cp -v README* LICENSE* $doc/share/doc/anki/
  +      cp -v anki.1 $man/share/man/man1/
         cp -v anki.xml $out/share/mime/packages/
         cp -v anki.{png,xpm} $out/share/pixmaps/
         cp -rv locale $out/share/
         cp -rv anki aqt web $pp/
   
         wrapPythonPrograms
  +
  +      # copy the manual into $doc
  +      cp -r ${manual}/share/doc/anki/html $doc/share/doc/anki
       '';
  +
  +    passthru = {
  +      inherit manual;
  +    };
   
       meta = with stdenv.lib; {
         homepage = "https://apps.ankiweb.net/";
  
positive.code: 
        # Remove QT translation files. We'll use the standard QT ones.
        rm "locale/"*.qm
      '';
  
      # UTF-8 locale needed for testing
  
negative.code: , python
  , fetchurl
  , fetchpatch
  , fetchFromGitHub
  , lame
  , mplayer
  , libpulseaudio
  