git.iko.soy/typeable/nixpkgs
on master help sign in
anki: update sqlalchemy build input and clean up the expression

SQLAlchemy-0.9.9 was broken recently, probably because of an sqlite update. So we just use the latest version. The build expression used to take the entire package set as an argument, which is poor style because it hides the true dependencies from the interface. I've change the code to expect the appropriate individual packages instead.

commitfdcd875b0e70750d670501269b4fec76e05b0647 authorPeter Simons <simons@cryp.to> dateTue 15 Mar 2016, 10:59 (11 years ago) parent440b301
2 files changed+10−7
pkgs/games/anki/default.nix+7−6 pkgs/top-level/all-packages.nix+3−1
pkgs/games/anki/default.nix+7−6
@@ -1,11 +1,12 @@
11{ stdenv, lib, fetchurl, substituteAll, lame, mplayer
2−, libpulseaudio, python, pyqt4, qt4, pythonPackages
2+, libpulseaudio, python, pyqt4, qt4, wrapPython
3+, pysqlite, sqlalchemy, pyaudio, beautifulsoup, httplib2, matplotlib
34# This little flag adds a huge number of dependencies, but we assume that
45# everyone wants Anki to draw plots with statistics by default.
5−, plotsSupport ? true }:
6+, plotsSupport ? true
7+}:
68
79let
8− py = pythonPackages;
910 version = "2.0.33";
1011in
1112stdenv.mkDerivation rec {
@@ -18,10 +19,10 @@ stdenv.mkDerivation rec {
1819 sha256 = "1d5rf5gcw98m38wam6wh3hyh7qd78ws7zipm67xg744flqsjrzmr";
1920 };
2021
21− pythonPath = [ pyqt4 py.pysqlite py.sqlalchemy9 py.pyaudio py.beautifulsoup py.httplib2 ]
22− ++ lib.optional plotsSupport py.matplotlib;
22+ pythonPath = [ pyqt4 pysqlite sqlalchemy pyaudio beautifulsoup httplib2 ]
23+ ++ lib.optional plotsSupport matplotlib;
2324
24− buildInputs = [ python py.wrapPython lame mplayer libpulseaudio ];
25+ buildInputs = [ python wrapPython lame mplayer libpulseaudio ];
2526
2627 phases = [ "unpackPhase" "patchPhase" "installPhase" ];
2728
pkgs/top-level/all-packages.nix+3−1
@@ -14540,7 +14540,9 @@ let
1454014540
1454114541 andyetitmoves = if stdenv.isLinux then callPackage ../games/andyetitmoves {} else null;
1454214542
14543− anki = callPackage ../games/anki { };
14543+ anki = callPackage ../games/anki {
14544+ inherit (pythonPackages) wrapPython pysqlite sqlalchemy pyaudio beautifulsoup httplib2 matplotlib;
14545+ };
1454414546
1454514547 armagetronad = callPackage ../games/armagetronad { };
1454614548