cbbc21f9f8
It was marked broken in 1dc27975d1 (May
2025).
But the bug was fixed in October 2025 with:
https://sourceforge.net/p/octave/optim/ci/d8c28ab3f3f37d439bc2d961d79f4a8caa9830d1/
Since there were new commits, but no release. I asked the upstream
maintainer to push the 1.6.3 tag.
I tested it works by importing the library:
nix-shell -p "octave.withPackages (ps: [ ps.optim ])" --run 'octave
--eval "pkg load optim; disp(\"Success!\")"'
44 lines
745 B
Nix
44 lines
745 B
Nix
{
|
|
buildOctavePackage,
|
|
lib,
|
|
fetchurl,
|
|
struct,
|
|
statistics,
|
|
lapack,
|
|
blas,
|
|
}:
|
|
|
|
buildOctavePackage rec {
|
|
pname = "optim";
|
|
version = "1.6.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-Wfs3caLSojE0R1MsWaLgAKanu3pnfz74GD+6qrVJOhQ=";
|
|
};
|
|
|
|
buildInputs = [
|
|
lapack
|
|
blas
|
|
];
|
|
|
|
requiredOctavePackages = [
|
|
struct
|
|
statistics
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://gnu-octave.github.io/packages/optim/";
|
|
license = with lib.licenses; [
|
|
gpl3Plus
|
|
publicDomain
|
|
];
|
|
# Modified BSD code seems removed
|
|
maintainers = with lib.maintainers; [
|
|
ravenjoad
|
|
lnk3
|
|
];
|
|
description = "Non-linear optimization toolkit";
|
|
};
|
|
}
|