2021-02-14 06:27:17 +00:00
|
|
|
# This file contains the GNU Octave add-on packages set.
|
|
|
|
# Each attribute is an Octave library.
|
|
|
|
# Expressions for the Octave libraries are supposed to be in `pkgs/development/octave-modules/<name>/default.nix`.
|
|
|
|
|
|
|
|
# When contributing a new package, if that package has a dependency on another
|
|
|
|
# octave package, then you DO NOT need to explicitly list it as such when
|
|
|
|
# performing the callPackage. It will be passed implicitly.
|
|
|
|
# In addition, try to use the same dependencies as the ones octave needs, which
|
|
|
|
# should ensure greater compatibility between Octave itself and its packages.
|
|
|
|
|
|
|
|
# Like python-packages.nix, packages from top-level.nix are not in the scope
|
|
|
|
# of the `callPackage` used for packages here. So, when we do need packages
|
|
|
|
# from outside, we can `inherit` them from `pkgs`.
|
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, newScope
|
|
|
|
, octave
|
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
makeScope newScope (self:
|
|
|
|
let
|
|
|
|
inherit (octave) blas lapack gfortran python texinfo gnuplot;
|
|
|
|
|
|
|
|
callPackage = self.callPackage;
|
|
|
|
|
|
|
|
buildOctavePackage = callPackage ../development/interpreters/octave/build-octave-package.nix {
|
|
|
|
inherit lib stdenv;
|
|
|
|
inherit octave;
|
|
|
|
inherit computeRequiredOctavePackages;
|
|
|
|
};
|
|
|
|
|
|
|
|
wrapOctave = callPackage ../development/interpreters/octave/wrap-octave.nix {
|
|
|
|
inherit octave;
|
|
|
|
inherit (pkgs) makeSetupHook makeWrapper;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Given a list of required Octave package derivations, get a list of
|
|
|
|
# ALL required Octave packages needed for the ones specified to run.
|
|
|
|
computeRequiredOctavePackages = drvs: let
|
|
|
|
# Check whether a derivation is an octave package
|
|
|
|
hasOctavePackage = drv: drv?isOctavePackage;
|
|
|
|
packages = filter hasOctavePackage drvs;
|
|
|
|
in unique (packages ++ concatLists (catAttrs "requiredOctavePackages" packages));
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
inherit callPackage buildOctavePackage computeRequiredOctavePackages;
|
|
|
|
|
|
|
|
inherit (callPackage ../development/interpreters/octave/hooks { })
|
|
|
|
writeRequiredOctavePackagesHook;
|
|
|
|
|
|
|
|
arduino = callPackage ../development/octave-modules/arduino {
|
|
|
|
inherit (pkgs) arduino;
|
|
|
|
};
|
|
|
|
|
2021-01-06 16:40:57 +00:00
|
|
|
audio = callPackage ../development/octave-modules/audio { };
|
2021-02-14 06:27:17 +00:00
|
|
|
|
|
|
|
bim = callPackage ../development/octave-modules/bim { };
|
|
|
|
|
|
|
|
bsltl = callPackage ../development/octave-modules/bsltl { };
|
|
|
|
|
|
|
|
cgi = callPackage ../development/octave-modules/cgi { };
|
|
|
|
|
2021-01-06 16:45:33 +00:00
|
|
|
communications = callPackage ../development/octave-modules/communications { };
|
2021-02-14 06:27:17 +00:00
|
|
|
|
|
|
|
control = callPackage ../development/octave-modules/control { };
|
|
|
|
|
2021-01-06 16:46:10 +00:00
|
|
|
data-smoothing = callPackage ../development/octave-modules/data-smoothing { };
|
|
|
|
|
2021-01-06 16:48:35 +00:00
|
|
|
database = callPackage ../development/octave-modules/database { };
|
|
|
|
|
2021-01-06 16:49:38 +00:00
|
|
|
dataframe = callPackage ../development/octave-modules/dataframe { };
|
|
|
|
|
2021-01-06 16:50:23 +00:00
|
|
|
dicom = callPackage ../development/octave-modules/dicom { };
|
|
|
|
|
2021-01-06 16:50:59 +00:00
|
|
|
divand = callPackage ../development/octave-modules/divand { };
|
|
|
|
|
2021-01-06 16:51:36 +00:00
|
|
|
doctest = callPackage ../development/octave-modules/doctest { };
|
|
|
|
|
2021-01-06 16:52:41 +00:00
|
|
|
econometrics = callPackage ../development/octave-modules/econometrics { };
|
|
|
|
|
2021-01-06 16:55:24 +00:00
|
|
|
fem-fenics = callPackage ../development/octave-modules/fem-fenics {
|
|
|
|
# PLACEHOLDER until KarlJoad gets dolfin packaged.
|
|
|
|
dolfin = null;
|
|
|
|
ffc = null;
|
|
|
|
};
|
|
|
|
|
2021-01-06 16:57:06 +00:00
|
|
|
fits = callPackage ../development/octave-modules/fits { };
|
|
|
|
|
2021-01-06 16:56:20 +00:00
|
|
|
financial = callPackage ../development/octave-modules/financial { };
|
|
|
|
|
2021-01-06 16:46:10 +00:00
|
|
|
general = callPackage ../development/octave-modules/general {
|
|
|
|
nettle = pkgs.nettle;
|
|
|
|
};
|
|
|
|
|
2021-02-14 06:27:17 +00:00
|
|
|
io = callPackage ../development/octave-modules/io {
|
2020-12-16 19:12:15 +00:00
|
|
|
inherit (octave) enableJava;
|
2021-02-14 06:27:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
level-set = callPackage ../development/octave-modules/level-set { };
|
|
|
|
|
|
|
|
linear-algebra = callPackage ../development/octave-modules/linear-algebra { };
|
|
|
|
|
|
|
|
ltfat = callPackage ../development/octave-modules/ltfat {
|
2020-12-18 02:16:01 +00:00
|
|
|
inherit (octave) fftw fftwSinglePrec portaudio jdk;
|
|
|
|
inherit (pkgs) fftwFloat fftwLongDouble;
|
2021-02-14 06:27:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
signal = callPackage ../development/octave-modules/signal { };
|
|
|
|
|
|
|
|
symbolic = callPackage ../development/octave-modules/symbolic {
|
2020-12-13 00:25:18 +00:00
|
|
|
inherit (octave) python;
|
2021-02-14 06:27:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
})
|