1{ fetchurl, stdenv, pkgconfig, python 2, gst-plugins-base, pygobject3 3, ncurses 4}: 5 6stdenv.mkDerivation rec { 7 name = "gst-python-1.8.2"; 8 9 src = fetchurl { 10 urls = [ 11 "${meta.homepage}/src/gst-python/${name}.tar.xz" 12 "mirror://gentoo/distfiles/${name}.tar.xz" 13 ]; 14 sha256 = "15sdfa6lq5pswvi09vk51cs30yf8wr2rlm9myhb4q0c2jhiial2g"; 15 }; 16 17 patches = [ ./different-path-with-pygobject.patch ]; 18 19 outputs = [ "out" "dev" ]; 20 21 nativeBuildInputs = [ pkgconfig python ]; 22 23 # XXX: in the Libs.private field of python3.pc 24 buildInputs = [ ncurses ]; 25 26 preConfigure = '' 27 export configureFlags="$configureFlags --with-pygi-overrides-dir=$out/lib/${python.libPrefix}/site-packages/gi/overrides" 28 ''; 29 30 propagatedBuildInputs = [ gst-plugins-base pygobject3 ]; 31 32 meta = { 33 homepage = http://gstreamer.freedesktop.org; 34 35 description = "Python bindings for GStreamer"; 36 37 license = stdenv.lib.licenses.lgpl2Plus; 38 }; 39}