From de12417ec718af4b914f544f65a15591479d82a4 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Tue, 22 Dec 2015 20:31:34 +0100 Subject: [PATCH] anki: enable playing sound files --- pkgs/games/anki/default.nix | 4 ++++ 1 file changed, 4 insertions(+) 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/