2011-03-08 12:19:32 +03:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
2014-11-13 16:33:15 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cminpack-1.3.4";
|
2011-03-08 12:19:32 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-13 16:33:15 +03:00
|
|
|
url = "http://devernay.free.fr/hacks/cminpack/${name}.tar.gz";
|
|
|
|
sha256 = "1jh3ymxfcy3ykh6gnvds5bbkf38aminvjgc8halck356vkvpnl9v";
|
2011-03-08 12:19:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i s,/usr/local,$out, Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/lib $out/include
|
2011-03-08 12:19:32 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2011-03-08 12:19:41 +03:00
|
|
|
homepage = http://devernay.free.fr/hacks/cminpack/cminpack.html;
|
2014-11-13 16:33:15 +03:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2011-03-08 12:19:32 +03:00
|
|
|
description = "Software for solving nonlinear equations and nonlinear least squares problems";
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-03-08 12:19:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|