diff options
| author | Mario Rodas <marsam@users.noreply.github.com> | 2020-04-10 04:20:00 -0500 |
|---|---|---|
| committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-04-10 04:20:00 -0500 |
| commit | fa032124bb328d04141e2cd17e5d6b6db0db9a5e (patch) | |
| tree | 04c37b719888b8e2776cffdd813bbab220eec801 /pkgs/development/python-modules/gst-python | |
| parent | 5bca1a7664f1769678b2dd8ad0976581a86cda0a (diff) | |
python3Packages.gst-python: fix build on darwin
Diffstat (limited to 'pkgs/development/python-modules/gst-python')
| -rw-r--r-- | pkgs/development/python-modules/gst-python/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gst-python/default.nix b/pkgs/development/python-modules/gst-python/default.nix index 405dd7374fcc..11080d3fbc84 100644 --- a/pkgs/development/python-modules/gst-python/default.nix +++ b/pkgs/development/python-modules/gst-python/default.nix @@ -9,6 +9,7 @@ , gobject-introspection , gst-plugins-base , isPy3k +, fetchpatch }: buildPythonPackage rec { @@ -38,6 +39,14 @@ buildPythonPackage rec { pygobject3 ]; + patches = stdenv.lib.optionals stdenv.isDarwin [ + # Fix configure python lib detection in macOS. Remove with the next release + (fetchpatch { + url = "https://github.com/GStreamer/gst-python/commit/f98c206bdf01529f8ea395a719b10baf2bdf717f.patch"; + sha256 = "04n4zrnfivgr7iaqw4sjlbd882s8halc2bbbhfxqf0sg2lqwmrxg"; + }) + ]; + mesonFlags = [ "-Dpython=python${if isPy3k then "3" else "2"}" "-Dpygi-overrides-dir=${placeholder "out"}/${python.sitePackages}/gi/overrides" |
