anki: enable playing sound files

This commit is contained in:
Profpatsch 2015-12-22 20:31:34 +01:00
parent e16d3d0d8a
commit de12417ec7

View File

@ -23,6 +23,10 @@ stdenv.mkDerivation rec {
buildInputs = [ python py.wrapPython lame mplayer libpulseaudio ]; buildInputs = [ python py.wrapPython lame mplayer libpulseaudio ];
patchPhase = ''
substituteInPlace anki/sound.py --replace '["mplayer"]' '["${mplayer}/bin/mplayer"]'
'';
preConfigure = '' preConfigure = ''
substituteInPlace anki/anki \ substituteInPlace anki/anki \
--replace /usr/share/ $out/share/ --replace /usr/share/ $out/share/