mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
21f17d69f6
Build-tested on x86_64 Linux & Mac.
27 lines
633 B
Nix
27 lines
633 B
Nix
{stdenv, fetchurl}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cminpack-1.3.4";
|
|
|
|
src = fetchurl {
|
|
url = "http://devernay.free.fr/hacks/cminpack/${name}.tar.gz";
|
|
sha256 = "1jh3ymxfcy3ykh6gnvds5bbkf38aminvjgc8halck356vkvpnl9v";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i s,/usr/local,$out, Makefile
|
|
'';
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/lib $out/include
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://devernay.free.fr/hacks/cminpack/cminpack.html;
|
|
license = stdenv.lib.licenses.bsd3;
|
|
description = "Software for solving nonlinear equations and nonlinear least squares problems";
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
|
|
}
|