mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
python.pkgs.gst-python: fix Python 3 build
This commit is contained in:
parent
c0769dc6ef
commit
f913554432
@ -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…
Reference in New Issue
Block a user