levmar: fix build on darwin

+5
+5
pkgs/by-name/le/levmar/package.nix
··· 17 17 substituteInPlace levmar.h --replace-fail "define HAVE_LAPACK" "undef HAVE_LAPACK" 18 18 sed -i 's/LAPACKLIBS=.*/LAPACKLIBS=/' Makefile 19 19 substituteInPlace Makefile --replace-fail "gcc" "${stdenv.cc.targetPrefix}cc" 20 + '' 21 + + lib.optionalString stdenv.cc.isClang '' 22 + substituteInPlace compiler.h \ 23 + --replace-fail "#define LM_FINITE finite // ICC, GCC" \ 24 + "#define LM_FINITE isfinite // ICC, GCC" 20 25 ''; 21 26 22 27 installPhase = ''