python.pkgs.gst-python: fix Python 3 build

This commit is contained in:
Frederik Rietdijk 2017-08-13 21:42:30 +02:00
parent c0769dc6ef
commit f913554432

View File

@ -1,12 +1,11 @@
{ fetchurl, stdenv, pkgconfig, pythonPackages
, gst-plugins-base
, ncurses
{ fetchurl, stdenv, pkgconfig, python, pygobject3
, gst-plugins-base, ncurses
}:
let
inherit (pythonPackages) python pygobject3;
in stdenv.mkDerivation rec {
name = "gst-python-1.10.4";
stdenv.mkDerivation rec {
pname = "gst-python";
version = "1.10.4";
name = "${pname}-${version}";
src = fetchurl {
urls = [
@ -26,11 +25,14 @@ in stdenv.mkDerivation rec {
buildInputs = [ ncurses ];
preConfigure = ''
export configureFlags="$configureFlags --with-pygi-overrides-dir=$out/lib/${python.libPrefix}/site-packages/gi/overrides"
export configureFlags="$configureFlags --with-pygi-overrides-dir=$out/lib/${python.sitePackages}/gi/overrides"
'';
propagatedBuildInputs = [ gst-plugins-base pygobject3 ];
# Needed for python.buildEnv
passthru.pythonPath = [];
meta = {
homepage = http://gstreamer.freedesktop.org;