6 , withBlas ? true, blas
9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 hash = "sha256-eFJ43cHbSbWld+gPpMaNiBy1X5TIcN9aVxjh8PxvVDU=";
26 buildInputs = lib.optionals withBlas [
28 ] ++ lib.optionals (withBlas && stdenv.hostPlatform.isDarwin) [
29 darwin.apple_sdk.frameworks.Accelerate
30 darwin.apple_sdk.frameworks.CoreGraphics
31 darwin.apple_sdk.frameworks.CoreVideo
35 "-DUSE_BLAS=${if withBlas then "ON" else "OFF"}"
36 "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
40 description = "Software for solving nonlinear equations and nonlinear least squares problems";
41 homepage = "http://devernay.free.fr/hacks/cminpack/";
42 changelog = "https://github.com/devernay/cminpack/blob/v${version}/README.md#history";
43 license = lib.licenses.bsd3;
44 platforms = lib.platforms.all;