python pillow: fix build for py2.6 and pypy

This commit is contained in:
Pavan Rikhi 2014-12-15 18:44:36 -05:00
parent c08310c62d
commit 1c2d8babcd
1 changed files with 5 additions and 2 deletions

View File

@ -6782,7 +6782,10 @@ let
md5 = "56b6614499aacb7d6b5983c4914daea7";
};
buildInputs = with self; [ pkgs.freetype pkgs.libjpeg pkgs.zlib pkgs.libtiff pkgs.libwebp pkgs.tcl ];
buildInputs = with self; [
pkgs.freetype pkgs.libjpeg pkgs.zlib pkgs.libtiff pkgs.libwebp pkgs.tcl ]
++ optionals (isPy26 || isPyPy) [ pkgs.lcms2 ]
++ optionals (isPyPy) [ pkgs.tk pkgs.xlibs.libX11 ];
# NOTE: we use LCMS_ROOT as WEBP root since there is not other setting for webp.
preConfigure = ''
@ -6809,7 +6812,7 @@ let
license = "http://www.pythonware.com/products/pil/license.htm";
maintainers = [ stdenv.lib.maintainers.goibhniu ];
maintainers = with stdenv.lib.maintainers; [ goibhniu prikhi ];
};
};