summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/anki/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/games/anki/default.nix b/pkgs/games/anki/default.nix
index 735d260560d4..f99a8ddb4a83 100644
--- a/pkgs/games/anki/default.nix
+++ b/pkgs/games/anki/default.nix
@@ -23,6 +23,10 @@ stdenv.mkDerivation rec {
 
     buildInputs = [ python py.wrapPython lame mplayer libpulseaudio ];
 
+    patchPhase = ''
+      substituteInPlace anki/sound.py --replace '["mplayer"]' '["${mplayer}/bin/mplayer"]'
+    '';
+
     preConfigure = ''
       substituteInPlace anki/anki \
         --replace /usr/share/ $out/share/