2011-03-08 09:19:32 +00:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2011-03-08 09:19:41 +00:00
|
|
|
name = "cminpack-1.1.2";
|
2011-03-08 09:19:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-03-08 09:19:41 +00:00
|
|
|
url = http://devernay.free.fr/hacks/cminpack/cminpack-1.1.2.tar.gz;
|
|
|
|
sha256 = "0sd8gqk7npyiiiz2jym8q89d9gqx8fig0mnx63swkwmp4lqmmxww";
|
2011-03-08 09:19:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i s,/usr/local,$out, Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
ensureDir $out/lib $out/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2011-03-08 09:19:41 +00:00
|
|
|
homepage = http://devernay.free.fr/hacks/cminpack/cminpack.html;
|
2011-03-08 09:19:32 +00:00
|
|
|
license = "BSD";
|
|
|
|
description = "Software for solving nonlinear equations and nonlinear least squares problems";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|