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

wip/yesman
Frederik Rietdijk 7 years ago
parent c0769dc6ef
commit f913554432
  1. 18
      pkgs/development/libraries/gstreamer/python/default.nix

@ -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;

Loading…
Cancel
Save