Unverified Commit 042ae52e authored by Grimmauld's avatar Grimmauld Committed by GitHub
Browse files

cminpack: 1.3.8 -> 1.3.11 (#445320)

parents c83ec1e2 51ad9da9
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -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/";