mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
gst-python: make it works
This commit is contained in:
parent
6f689beeeb
commit
36af50f69a
|
@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "09c6yls8ipbmwimdjr7xi3hvf2xa1xn1pv07855r7wfyzas1xbl1";
|
||||
};
|
||||
|
||||
patches = [ ./different-path-with-pygobject.patch ];
|
||||
|
||||
buildInputs =
|
||||
[ pkgconfig gst-plugins-base pygtk pygobject3 ]
|
||||
;
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
diff -Nru gst-python-1.2.0-orig/gi/overrides/Makefile.in gst-python-1.2.0/gi/overrides/Makefile.in
|
||||
--- gst-python-1.2.0-orig/gi/overrides/Makefile.in 2014-03-22 21:47:56.235364405 +0800
|
||||
+++ gst-python-1.2.0/gi/overrides/Makefile.in 2014-03-22 21:48:28.737958066 +0800
|
||||
@@ -356,7 +356,7 @@
|
||||
|
||||
# We install everything in the gi/overrides folder
|
||||
pygioverridesdir = $(PYGI_OVERRIDES_DIR)
|
||||
-pygioverrides_PYTHON = Gst.py GstPbutils.py
|
||||
+pygioverrides_PYTHON = Gst.py GstPbutils.py __init__.py
|
||||
pygioverridesexecdir = $(PYGI_OVERRIDES_DIR)
|
||||
EXTRA_DIST = Gst.py
|
||||
INCLUDES = $(PYTHON_INCLUDES)
|
||||
diff -Nru gst-python-1.2.0-orig/gi/overrides/__init__.py gst-python-1.2.0/gi/overrides/__init__.py
|
||||
--- gst-python-1.2.0-orig/gi/overrides/__init__.py 1970-01-01 08:00:00.000000000 +0800
|
||||
+++ gst-python-1.2.0/gi/overrides/__init__.py 2014-03-22 21:48:15.442124287 +0800
|
||||
@@ -0,0 +1,4 @@
|
||||
+from pkgutil import extend_path
|
||||
+
|
||||
+__path__ = extend_path(__path__, __name__)
|
||||
+print(__path__, __name__)
|
Loading…
Reference in a new issue