diff --git a/pkgs/by-name/cm/cminpack/package.nix b/pkgs/by-name/cm/cminpack/package.nix index 7d2b48cd3d13..446161d2929f 100644 --- a/pkgs/by-name/cm/cminpack/package.nix +++ b/pkgs/by-name/cm/cminpack/package.nix @@ -3,21 +3,27 @@ stdenv, cmake, fetchFromGitHub, - withBlas ? true, + withBlas ? false, blas, + nix-update-script, }: stdenv.mkDerivation rec { pname = "cminpack"; - version = "1.3.8"; + version = "1.3.11"; src = fetchFromGitHub { owner = "devernay"; repo = "cminpack"; rev = "v${version}"; - hash = "sha256-eFJ43cHbSbWld+gPpMaNiBy1X5TIcN9aVxjh8PxvVDU="; + hash = "sha256-GF9HiITX/XV8hXrp5lJw2XM0Zyb/CBkMZkRFBbQj03A="; }; + postPatch = '' + substituteInPlace cmake/cminpack.pc.in \ + --replace-fail ''\'''${prefix}/' "" + ''; + strictDeps = true; nativeBuildInputs = [ @@ -33,6 +39,10 @@ stdenv.mkDerivation rec { "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}" ]; + passthru = { + updateScript = nix-update-script { }; + }; + meta = { description = "Software for solving nonlinear equations and nonlinear least squares problems"; homepage = "http://devernay.free.fr/hacks/cminpack/";