Skip to content

Commit 9abf96d

Browse files
authored
fix numpy on Nix+Mac issue
1 parent e79e113 commit 9abf96d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

flake.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
k-framework.packages.${system}.pyk-python310
8989
k-framework.packages.${system}.k
9090
komet-pyk
91+
] ++ lib.optionals stdenv.isDarwin [
92+
gfortran.cc.lib
93+
openblas
9194
];
9295

9396
dontUseCmakeConfigure = true;
@@ -119,7 +122,10 @@
119122
komet-stellar
120123
]
121124
)
122-
} --set KDIST_DIR $out
125+
} --set KDIST_DIR $out \
126+
${pkgs.lib.optionalString stdenv.isDarwin ''
127+
--set DYLD_LIBRARY_PATH ${gfortran.cc.lib}/lib:${openblas}/lib:$DYLD_LIBRARY_PATH
128+
''}
123129
'';
124130

125131
passthru = if komet-rust == null && komet-stellar == null then {

0 commit comments

Comments
 (0)