From 2fcf65013f4ba8950f24544eef1cf5baefff4395 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 26 Mar 2025 00:07:03 +0100 Subject: [PATCH] python3.pkgs.gst-python: Fix build with PyGObject 3.52 Still need a second patch for https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4322 --- .../development/python-modules/gst-python/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/gst-python/default.nix b/pkgs/development/python-modules/gst-python/default.nix index 3c014b8307c2..301da0fc46dd 100644 --- a/pkgs/development/python-modules/gst-python/default.nix +++ b/pkgs/development/python-modules/gst-python/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchurl, + fetchpatch, meson, ninja, @@ -30,6 +31,16 @@ buildPythonPackage rec { hash = "sha256-5QRqBdd6uxVnGtAc0ZCNF9YuWgb114Qb5DQq3io/uNs="; }; + patches = [ + # Fix segfault with PyGObject>=3.52.0 + # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8653 + (fetchpatch { + url = "https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/69bba61e548c7a63bc18137e63e41489a7de9d36.patch"; + stripLen = 2; + hash = "sha256-BfWPc8dsB09KiEm9bNT8e+jH76jiDefQlEhhLJoq7tI="; + }) + ]; + # Python 2.x is not supported. disabled = !isPy3k;