python.pkgs.cairocffi: support darwin
This commit is contained in:
parent
46dfe1eca8
commit
832973d179
@ -1,5 +1,6 @@
|
|||||||
# FIXME: make gdk_pixbuf dependency optional
|
# FIXME: make gdk_pixbuf dependency optional
|
||||||
{ buildPythonPackage
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, lib
|
, lib
|
||||||
, substituteAll
|
, substituteAll
|
||||||
@ -42,6 +43,7 @@ buildPythonPackage rec {
|
|||||||
# OSError: dlopen() failed to load a library: gdk_pixbuf-2.0 / gdk_pixbuf-2.0-0
|
# OSError: dlopen() failed to load a library: gdk_pixbuf-2.0 / gdk_pixbuf-2.0-0
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./dlopen-paths.patch;
|
src = ./dlopen-paths.patch;
|
||||||
|
ext = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||||
cairo = cairo.out;
|
cairo = cairo.out;
|
||||||
glib = glib.out;
|
glib = glib.out;
|
||||||
gdk_pixbuf = gdk_pixbuf.out;
|
gdk_pixbuf = gdk_pixbuf.out;
|
||||||
|
@ -16,10 +16,10 @@ index 718aa7f..1a1dcff 100644
|
|||||||
|
|
||||||
+# Use hardcoded soname, because ctypes.util use gcc/objdump which shouldn't be required for runtime
|
+# Use hardcoded soname, because ctypes.util use gcc/objdump which shouldn't be required for runtime
|
||||||
+_LIBS = {
|
+_LIBS = {
|
||||||
+ 'cairo': '@cairo@/lib/libcairo.so.2',
|
+ 'cairo': '@cairo@/lib/libcairo@ext@',
|
||||||
+ 'glib-2.0': '@glib@/lib/libglib-2.0.so.0',
|
+ 'glib-2.0': '@glib@/lib/libglib-2.0@ext@',
|
||||||
+ 'gobject-2.0': '@glib@/lib/libgobject-2.0.so.0',
|
+ 'gobject-2.0': '@glib@/lib/libgobject-2.0@ext@',
|
||||||
+ 'gdk_pixbuf-2.0': '@gdk_pixbuf@/lib/libgdk_pixbuf-2.0.so.0',
|
+ 'gdk_pixbuf-2.0': '@gdk_pixbuf@/lib/libgdk_pixbuf-2.0@ext@',
|
||||||
+}
|
+}
|
||||||
|
|
||||||
-def dlopen(ffi, *names):
|
-def dlopen(ffi, *names):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user