Skip to content

Commit d59eb93

Browse files
committed
python3Packages.meson-python: fixup darwin build again
The patch doesn't fully fix the problem: mesonbuild/meson-python#761 (comment) and I want to avoid rebuilding on Linux again this iteration.
1 parent 9555d37 commit d59eb93

File tree

1 file changed

+13
-0
lines changed
  • pkgs/development/python-modules/meson-python

1 file changed

+13
-0
lines changed

pkgs/development/python-modules/meson-python/default.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
lib,
3+
stdenv,
34
buildPythonPackage,
45
fetchPypi,
56
fetchpatch,
@@ -56,6 +57,18 @@ buildPythonPackage rec {
5657
pytest-mock
5758
];
5859

60+
# meson-python respectes MACOSX_DEPLOYMENT_TARGET, but compares it with the
61+
# actual platform version during tests, which mismatches.
62+
# https://github.com/mesonbuild/meson-python/issues/760
63+
# FIXME: drop in 0.19.0
64+
preCheck =
65+
if stdenv.hostPlatform.isDarwin then
66+
''
67+
unset MACOSX_DEPLOYMENT_TARGET
68+
''
69+
else
70+
null;
71+
5972
setupHooks = [ ./add-build-flags.sh ];
6073

6174
meta = {

0 commit comments

Comments
 (0)