11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
19 hash = "sha256-eFJ43cHbSbWld+gPpMaNiBy1X5TIcN9aVxjh8PxvVDU=";
29 lib.optionals withBlas [
32 ++ lib.optionals (withBlas && stdenv.hostPlatform.isDarwin) [
33 darwin.apple_sdk.frameworks.Accelerate
34 darwin.apple_sdk.frameworks.CoreGraphics
35 darwin.apple_sdk.frameworks.CoreVideo
39 "-DUSE_BLAS=${if withBlas then "ON" else "OFF"}"
40 "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
44 description = "Software for solving nonlinear equations and nonlinear least squares problems";
45 homepage = "http://devernay.free.fr/hacks/cminpack/";
46 changelog = "https://github.com/devernay/cminpack/blob/v${version}/README.md#history";
47 license = lib.licenses.bsd3;
48 platforms = lib.platforms.all;