summary refs log tree commit diff
path: root/pkgs/development/octave-modules/optim/default.nix
blob: 57a606d3d58da8e23f12acf8347424e9eb02a5d9 (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
26
27
28
29
30
31
32
33
34
35
36
{ buildOctavePackage
, lib
, fetchurl
, struct
, statistics
, lapack
, blas
}:

buildOctavePackage rec {
  pname = "optim";
  version = "1.6.1";

  src = fetchurl {
    url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
    sha256 = "1175bckiryz0i6zm8zvq7y5rq3lwkmhyiky1gbn33np9qzxcsl3i";
  };

  buildInputs = [
    lapack
    blas
  ];

  requiredOctavePackages = [
    struct
    statistics
  ];

  meta = with lib; {
    homepage = "https://octave.sourceforge.io/optim/index.html";
    license = with licenses; [ gpl3Plus publicDomain ];
    # Modified BSD code seems removed
    maintainers = with maintainers; [ KarlJoad ];
    description = "Non-linear optimization toolkit";
  };
}