From 51ad9da919eac7d21131809aaf0d0af3402e5d85 Mon Sep 17 00:00:00 2001 From: Zebreus Date: Mon, 22 Sep 2025 21:55:23 +0200 Subject: [PATCH] cminpack: 1.3.8 -> 1.3.11 --- pkgs/by-name/cm/cminpack/package.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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/";