mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Merge pull request #84957 from marsam/fix-python3Packages.gst-python-darwin
python3Packages.gst-python: fix build on darwin
This commit is contained in:
commit
6246f24f46
1 changed files with 9 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue