python cairocffi: hardcode cairo library path

This commit is contained in:
Stéphane Jourdois 2015-10-28 18:54:45 +01:00
parent a9254356d1
commit 51724c5b7d

View File

@ -1873,7 +1873,12 @@ let
md5 = "e26d06a8d8b16c7210414ce15d453636";
};
propagatedBuildInputs = with self; [ cffi ];
propagatedBuildInputs = with self; [ pkgs.cairo cffi ];
patchPhase = ''
# Hardcode cairo library path
sed -e 's,ffi\.dlopen(,&"${pkgs.cairo}/lib/" + ,' -i cairocffi/__init__.py
'';
meta = {
homepage = https://github.com/SimonSapin/cairocffi;