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 = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/lib $out/include
|
2011-03-08 09:19:32 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|