Skip to content

Commit a3b6f93

Browse files
committed
override numpy on Darwin to fix dynamic library issue on Mac+nix
1 parent e79e113 commit a3b6f93

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

flake.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@
6969
(finalPython: prevPython: {
7070
kframework = k-framework.packages.${system}.pyk-python310;
7171
pykwasm = wasm-semantics.packages.${system}.kwasm-pyk;
72+
# override numpy on Darwin to avoid the missing dynamic library issue
73+
numpy = if pkgs.stdenv.isDarwin
74+
then
75+
prevPython.numpy.override {
76+
blas = null;
77+
lapack = null;
78+
}
79+
else
80+
prevPython.numpy;
7281
});
7382
groups = [ ];
7483
checkGroups = [ ];

0 commit comments

Comments
 (0)