git.iko.soy/typeable/nixpkgs
on master help sign in
pil, pillow: Patch out Darwin impurities
commitedf9bcdbab848d43404d464ced2952ae178c8b97 authorSpencer Whitt <sw@swhitt.me> dateFri 10 Apr 2015, 00:21 (12 years ago) parentfecba03
1 file changed+13−1
pkgs/top-level/python-packages.nix+13−1
pkgs/top-level/python-packages.nix+13−1
@@ -8010,6 +8010,12 @@ let
80108010 -e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${pkgs.freetype}")|g ;
80118011 s|^JPEG_ROOT =.*$|JPEG_ROOT = libinclude("${pkgs.libjpeg}")|g ;
80128012 s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${pkgs.zlib}")|g ;'
8013+ ''
8014+ # Remove impurities
8015+ + stdenv.lib.optionalString stdenv.isDarwin ''
8016+ substituteInPlace setup.py \
8017+ --replace '"/Library/Frameworks",' "" \
8018+ --replace '"/System/Library/Frameworks"' ""
80138019 '';
80148020
80158021 checkPhase = "${python}/bin/${python.executable} selftest.py";
@@ -8051,10 +8057,16 @@ let
80518057 s|^LCMS_ROOT =.*$|LCMS_ROOT = _lib_include("${pkgs.libwebp}")|g ;
80528058 s|^TIFF_ROOT =.*$|TIFF_ROOT = _lib_include("${pkgs.libtiff}")|g ;
80538059 s|^TCL_ROOT=.*$|TCL_ROOT = _lib_include("${pkgs.tcl}")|g ;'
8060+ ''
8061+ # Remove impurities
8062+ + stdenv.lib.optionalString stdenv.isDarwin ''
8063+ substituteInPlace setup.py \
8064+ --replace '"/Library/Frameworks",' "" \
8065+ --replace '"/System/Library/Frameworks"' ""
80548066 '';
80558067
80568068 meta = {
8057− homepage = http://python-imaging.github.com/Pillow;
8069+ homepage = "https://python-pillow.github.io/";
80588070
80598071 description = "Fork of The Python Imaging Library (PIL)";
80608072