summary refs log tree commit diff
path: root/pkgs/development/libraries/cminpack/default.nix
blob: 121f41a0f3c5fd794ac073b75106fa3f234512db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "cminpack-1.1.2";
  
  src = fetchurl {
    url = http://devernay.free.fr/hacks/cminpack/cminpack-1.1.2.tar.gz;
    sha256 = "0sd8gqk7npyiiiz2jym8q89d9gqx8fig0mnx63swkwmp4lqmmxww";
  };

  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 = "BSD";
    description = "Software for solving nonlinear equations and nonlinear least squares problems";
  };

}