We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4104fe9 commit bad887dCopy full SHA for bad887d
1 file changed
pkgs/development/python-modules/numpy/default.nix
@@ -11,6 +11,7 @@
11
, cython_3
12
, gfortran
13
, meson-python
14
+, mesonEmulatorHook
15
, pkg-config
16
, xcbuild
17
@@ -96,6 +97,8 @@ in buildPythonPackage rec {
96
97
pkg-config
98
] ++ lib.optionals (stdenv.isDarwin) [
99
xcbuild.xcrun
100
+ ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
101
+ mesonEmulatorHook
102
];
103
104
buildInputs = [
@@ -114,6 +117,11 @@ in buildPythonPackage rec {
114
117
export OMP_NUM_THREADS=$((NIX_BUILD_CORES > 64 ? 64 : NIX_BUILD_CORES))
115
118
'';
116
119
120
+ # HACK: copy mesonEmulatorHook's flags to the variable used by meson-python
121
+ postConfigure = ''
122
+ mesonFlags="$mesonFlags ''${mesonFlagsArray[@]}"
123
+ '';
124
+
125
preBuild = ''
126
ln -s ${cfg} site.cfg
127
0 commit comments