anki: 2.0.3 -> 2.0.12
This commit is contained in:
parent
e613d30c3c
commit
a774212684
1 changed files with 8 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, fetchurl
|
{ stdenv, lib, fetchurl, lame, mplayer, pulseaudio, portaudio
|
||||||
, python, pyqt4, pythonPackages
|
, python, pyqt4, pythonPackages
|
||||||
# This little flag adds a huge number of dependencies, but we assume that
|
# This little flag adds a huge number of dependencies, but we assume that
|
||||||
# everyone wants Anki to draw plots with statistics by default.
|
# everyone wants Anki to draw plots with statistics by default.
|
||||||
|
@ -9,16 +9,16 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "anki-2.0.3";
|
name = "anki-2.0.12";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://ankisrs.net/download/mirror/${name}.tgz";
|
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;
|
++ lib.optional plotsSupport py.matplotlib;
|
||||||
|
|
||||||
buildInputs = [ python py.wrapPython ];
|
buildInputs = [ python py.wrapPython lame mplayer pulseaudio ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace anki \
|
substituteInPlace anki \
|
||||||
|
@ -39,6 +39,9 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
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
|
wrapPythonPrograms
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue