2020-12-13 00:25:37 +00:00
|
|
|
{ buildOctavePackage
|
|
|
|
, lib
|
2023-04-13 17:16:58 +00:00
|
|
|
, fetchFromGitHub
|
2020-12-13 00:25:37 +00:00
|
|
|
, gfortran
|
|
|
|
, lapack, blas
|
2023-04-13 17:16:58 +00:00
|
|
|
, autoreconfHook
|
2020-12-13 00:25:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildOctavePackage rec {
|
|
|
|
pname = "control";
|
2023-10-12 01:27:51 +00:00
|
|
|
version = "3.6.1";
|
2020-12-13 00:25:37 +00:00
|
|
|
|
2023-04-13 17:16:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnu-octave";
|
|
|
|
repo = "pkg-control";
|
2023-10-12 01:27:51 +00:00
|
|
|
rev = "refs/tags/control-${version}";
|
|
|
|
sha256 = "sha256-7beEsdrne50NY4lGCotxGXwwWnMzUR2CKCc20OCjd0g=";
|
2020-12-13 00:25:37 +00:00
|
|
|
};
|
|
|
|
|
2023-04-13 17:16:58 +00:00
|
|
|
# Running autoreconfHook inside the src directory fixes a compile issue about
|
|
|
|
# the config.h header for control missing.
|
|
|
|
# This is supposed to be handled by control's top-level Makefile, but does not
|
|
|
|
# appear to be working. This manually forces it instead.
|
|
|
|
preAutoreconf = ''
|
|
|
|
pushd src
|
|
|
|
'';
|
|
|
|
|
|
|
|
postAutoreconf = ''
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
2020-12-13 00:25:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gfortran
|
2023-04-13 17:16:58 +00:00
|
|
|
autoreconfHook
|
2020-12-13 00:25:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
lapack blas
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-04-13 17:16:58 +00:00
|
|
|
homepage = "https://gnu-octave.github.io/packages/control/";
|
2020-12-13 00:25:37 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ KarlJoad ];
|
|
|
|
description = "Computer-Aided Control System Design (CACSD) Tools for GNU Octave, based on the proven SLICOT Library";
|
|
|
|
};
|
|
|
|
}
|