2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2011-03-08 09:19:32 +00:00
|
|
|
|
2014-11-13 13:33:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-08 08:16:47 +00:00
|
|
|
name = "cminpack-1.3.6";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2011-03-08 09:19:32 +00:00
|
|
|
src = fetchurl {
|
2014-11-13 13:33:15 +00:00
|
|
|
url = "http://devernay.free.fr/hacks/cminpack/${name}.tar.gz";
|
2018-03-08 08:16:47 +00:00
|
|
|
sha256 = "17yh695aim508x1kn9zf6g13jxwk3pi3404h5ix4g5lc60hzs1rw";
|
2011-03-08 09:19:32 +00:00
|
|
|
};
|
|
|
|
|
2021-03-08 15:54:25 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '/usr/local' '${placeholder "out"}' \
|
|
|
|
--replace 'gcc' '${stdenv.cc.targetPrefix}cc' \
|
|
|
|
--replace 'ranlib -t' '${stdenv.cc.targetPrefix}ranlib' \
|
|
|
|
--replace 'ranlib' '${stdenv.cc.targetPrefix}ranlib'
|
2011-03-08 09:19:32 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/lib $out/include
|
2011-03-08 09:19:32 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://devernay.free.fr/hacks/cminpack/cminpack.html";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2011-03-08 09:19:32 +00:00
|
|
|
description = "Software for solving nonlinear equations and nonlinear least squares problems";
|
2021-03-08 15:54:25 +00:00
|
|
|
platforms = lib.platforms.all;
|
2011-03-08 09:19:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|