nixpkgs/pkgs/development/octave-modules/control/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.1 KiB
Nix
Raw Normal View History

2020-12-13 01:25:37 +01:00
{ buildOctavePackage
, lib
, fetchFromGitHub
2020-12-13 01:25:37 +01:00
, gfortran
, lapack, blas
, autoreconfHook
2020-12-13 01:25:37 +01:00
}:
buildOctavePackage rec {
pname = "control";
2023-10-12 03:27:51 +02:00
version = "3.6.1";
2020-12-13 01:25:37 +01:00
src = fetchFromGitHub {
owner = "gnu-octave";
repo = "pkg-control";
2023-10-12 03:27:51 +02:00
rev = "refs/tags/control-${version}";
sha256 = "sha256-7beEsdrne50NY4lGCotxGXwwWnMzUR2CKCc20OCjd0g=";
2020-12-13 01:25:37 +01: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 01:25:37 +01:00
nativeBuildInputs = [
gfortran
autoreconfHook
2020-12-13 01:25:37 +01:00
];
buildInputs = [
lapack blas
];
meta = with lib; {
homepage = "https://gnu-octave.github.io/packages/control/";
2020-12-13 01:25:37 +01: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";
};
}