From 51724c5b7d7c542d1d0fdee61d026c66b2d01640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Jourdois?= Date: Wed, 28 Oct 2015 18:54:45 +0100 Subject: [PATCH] python cairocffi: hardcode cairo library path --- pkgs/top-level/python-packages.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c646a5413511..ff8397aed953 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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;