From be5bff02143628cafaa7af3cc7d28f04e32a35a0 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 3 Apr 2018 09:36:38 +0200 Subject: [PATCH] =?UTF-8?q?pythonPackages.gst-python:=201.12.3=20=E2=86=92?= =?UTF-8?q?=201.14.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../python-modules/gst-python/default.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/gst-python/default.nix b/pkgs/development/python-modules/gst-python/default.nix index 393d00a8176..b1d19e9f509 100644 --- a/pkgs/development/python-modules/gst-python/default.nix +++ b/pkgs/development/python-modules/gst-python/default.nix @@ -1,10 +1,10 @@ -{ fetchurl, stdenv, pkgconfig, python, pygobject3 +{ fetchurl, stdenv, meson, ninja, pkgconfig, python, pygobject3 , gst-plugins-base, ncurses }: stdenv.mkDerivation rec { pname = "gst-python"; - version = "1.12.3"; + version = "1.14.0"; name = "${pname}-${version}"; src = fetchurl { @@ -12,22 +12,25 @@ stdenv.mkDerivation rec { "${meta.homepage}/src/gst-python/${name}.tar.xz" "mirror://gentoo/distfiles/${name}.tar.xz" ]; - sha256 = "19rb06x2m7103zwfm0plxx95gb8bp01ng04h4q9k6ii9q7g2kxf3"; + sha256 = "1rlr6gl4lg97ng4jxh3gb2ldmywm15vwsa72nvggr8qa2l8q3fg0"; }; - patches = [ ./different-path-with-pygobject.patch ]; - outputs = [ "out" "dev" ]; - nativeBuildInputs = [ pkgconfig python ]; + nativeBuildInputs = [ meson ninja pkgconfig python ]; # XXX: in the Libs.private field of python3.pc buildInputs = [ ncurses ]; - configureFlags = [ - "--with-pygi-overrides-dir=$(out)/${python.sitePackages}/gi/overrides" + mesonFlags = [ + "-Dpygi-overrides-dir=${python.sitePackages}/gi/overrides" ]; + postPatch = '' + chmod +x scripts/pythondetector # patchShebangs requires executable file + patchShebangs scripts/pythondetector + ''; + propagatedBuildInputs = [ gst-plugins-base pygobject3 ]; # Needed for python.buildEnv