anki: 2.0.3 -> 2.0.12

This commit is contained in:
Domen Kožar 2013-09-22 19:22:49 +02:00
parent e613d30c3c
commit a774212684

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl
{ stdenv, lib, fetchurl, lame, mplayer, pulseaudio, portaudio
, python, pyqt4, pythonPackages
# This little flag adds a huge number of dependencies, but we assume that
# everyone wants Anki to draw plots with statistics by default.
@ -9,16 +9,16 @@ let
in
stdenv.mkDerivation rec {
name = "anki-2.0.3";
name = "anki-2.0.12";
src = fetchurl {
url = "http://ankisrs.net/download/mirror/${name}.tgz";
sha256 = "f40ee4ef29c91101cf9978ce7bd4c513f13ca7c77497a3fb50b8128adf3a5178";
sha256 = "1pccws3rgfpyxdx5xph5x72c4a46is0alfz73icn9ppgjdizzipr";
};
pythonPath = [ pyqt4 py.pysqlite py.sqlalchemy ]
pythonPath = [ pyqt4 py.pysqlite py.sqlalchemy py.pyaudio ]
++ lib.optional plotsSupport py.matplotlib;
buildInputs = [ python py.wrapPython ];
buildInputs = [ python py.wrapPython lame mplayer pulseaudio ];
preConfigure = ''
substituteInPlace anki \
@ -39,6 +39,9 @@ stdenv.mkDerivation rec {
'';
postInstall = ''
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
ln -s $out/share/anki/* $out/lib/${python.libPrefix}/site-packages/
export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
wrapPythonPrograms
'';