nixpkgs/pkgs/top-level/octave-packages.nix

221 lines
7.2 KiB
Nix
Raw Normal View History

# 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;
};
audio = callPackage ../development/octave-modules/audio { };
bim = callPackage ../development/octave-modules/bim { };
bsltl = callPackage ../development/octave-modules/bsltl { };
cgi = callPackage ../development/octave-modules/cgi { };
communications = callPackage ../development/octave-modules/communications { };
control = callPackage ../development/octave-modules/control { };
data-smoothing = callPackage ../development/octave-modules/data-smoothing { };
2021-01-06 19:48:35 +03:00
database = callPackage ../development/octave-modules/database { };
2021-01-06 19:49:38 +03:00
dataframe = callPackage ../development/octave-modules/dataframe { };
2021-01-06 19:50:23 +03:00
dicom = callPackage ../development/octave-modules/dicom { };
2021-01-06 19:50:59 +03:00
divand = callPackage ../development/octave-modules/divand { };
2021-01-06 19:51:36 +03:00
doctest = callPackage ../development/octave-modules/doctest { };
econometrics = callPackage ../development/octave-modules/econometrics { };
2021-01-06 19:55:24 +03:00
fem-fenics = callPackage ../development/octave-modules/fem-fenics {
# PLACEHOLDER until KarlJoad gets dolfin packaged.
dolfin = null;
ffc = null;
};
2021-01-06 19:57:06 +03:00
fits = callPackage ../development/octave-modules/fits { };
2021-01-06 19:56:20 +03:00
financial = callPackage ../development/octave-modules/financial { };
2021-01-06 19:57:52 +03:00
fpl = callPackage ../development/octave-modules/fpl { };
fuzzy-logic-toolkit = callPackage ../development/octave-modules/fuzzy-logic-toolkit { };
2021-01-06 20:01:13 +03:00
ga = callPackage ../development/octave-modules/ga { };
general = callPackage ../development/octave-modules/general {
nettle = pkgs.nettle;
};
generate_html = callPackage ../development/octave-modules/generate_html { };
2021-01-06 20:05:43 +03:00
geometry = callPackage ../development/octave-modules/geometry { };
2021-01-06 20:10:26 +03:00
gsl = callPackage ../development/octave-modules/gsl {
inherit (pkgs) gsl;
};
2021-01-06 20:11:25 +03:00
image = callPackage ../development/octave-modules/image { };
image-acquisition = callPackage ../development/octave-modules/image-acquisition { };
instrument-control = callPackage ../development/octave-modules/instrument-control { };
io = callPackage ../development/octave-modules/io {
2020-12-16 22:12:15 +03:00
inherit (octave) enableJava;
};
2021-01-06 20:15:38 +03:00
interval = callPackage ../development/octave-modules/interval { };
level-set = callPackage ../development/octave-modules/level-set { };
linear-algebra = callPackage ../development/octave-modules/linear-algebra { };
2021-01-06 20:18:18 +03:00
lssa = callPackage ../development/octave-modules/lssa { };
ltfat = callPackage ../development/octave-modules/ltfat {
inherit (octave) fftw fftwSinglePrec portaudio jdk;
inherit (pkgs) fftwFloat fftwLongDouble;
};
2021-01-06 20:19:17 +03:00
mapping = callPackage ../development/octave-modules/mapping { };
2021-01-06 20:22:06 +03:00
matgeom = callPackage ../development/octave-modules/matgeom { };
miscellaneous = callPackage ../development/octave-modules/miscellaneous { };
2021-01-06 20:24:14 +03:00
msh = callPackage ../development/octave-modules/msh {
# PLACEHOLDER until KarlJoad gets dolfin packaged.
dolfin = null;
};
2021-01-06 20:25:04 +03:00
mvn = callPackage ../development/octave-modules/mvn { };
2021-01-06 20:27:31 +03:00
nan = callPackage ../development/octave-modules/nan { };
2021-01-06 20:29:00 +03:00
ncarray = callPackage ../development/octave-modules/ncarray { };
2021-01-06 20:30:09 +03:00
netcdf = callPackage ../development/octave-modules/netcdf {
inherit (pkgs) netcdf;
};
2021-01-06 20:32:56 +03:00
nurbs = callPackage ../development/octave-modules/nurbs { };
2021-01-06 20:34:51 +03:00
ocl = callPackage ../development/octave-modules/ocl { };
2021-01-06 20:42:25 +03:00
octclip = callPackage ../development/octave-modules/octclip { };
2021-01-06 20:45:14 +03:00
octproj = callPackage ../development/octave-modules/octproj { };
2021-01-06 20:45:58 +03:00
optics = callPackage ../development/octave-modules/optics { };
2021-01-06 20:47:13 +03:00
optim = callPackage ../development/octave-modules/optim { };
2021-01-06 20:48:47 +03:00
optiminterp = callPackage ../development/octave-modules/optiminterp { };
2021-01-06 20:50:05 +03:00
parallel = callPackage ../development/octave-modules/parallel { };
2021-01-06 20:55:29 +03:00
quaternion = callPackage ../development/octave-modules/quaternion { };
2021-01-06 20:56:32 +03:00
queueing = callPackage ../development/octave-modules/queueing { };
signal = callPackage ../development/octave-modules/signal { };
2021-01-06 21:00:46 +03:00
sockets = callPackage ../development/octave-modules/sockets { };
sparsersb = callPackage ../development/octave-modules/sparsersb { };
2021-01-06 21:05:39 +03:00
2021-01-06 21:02:29 +03:00
stk = callPackage ../development/octave-modules/stk { };
2021-01-06 21:06:36 +03:00
splines = callPackage ../development/octave-modules/splines { };
2021-01-06 21:07:32 +03:00
statistics = callPackage ../development/octave-modules/statistics { };
2021-01-06 21:08:51 +03:00
strings = callPackage ../development/octave-modules/strings { };
2021-01-06 20:52:08 +03:00
struct = callPackage ../development/octave-modules/struct { };
symbolic = callPackage ../development/octave-modules/symbolic {
2020-12-13 03:25:18 +03:00
inherit (octave) python;
};
2021-01-06 21:11:15 +03:00
tisean = callPackage ../development/octave-modules/tisean { };
2021-01-06 21:12:25 +03:00
tsa = callPackage ../development/octave-modules/tsa { };
2021-01-06 21:13:10 +03:00
vibes = callPackage ../development/octave-modules/vibes {
vibes = null;
# TODO: Need to package vibes:
# https://github.com/ENSTABretagneRobotics/VIBES
};
2021-01-06 21:14:44 +03:00
video = callPackage ../development/octave-modules/video { };
2021-01-06 21:15:44 +03:00
vrml = callPackage ../development/octave-modules/vrml {
freewrl = null;
};
2021-01-06 21:16:44 +03:00
windows = callPackage ../development/octave-modules/windows { };
2021-01-06 21:19:42 +03:00
zeromq = callPackage ../development/octave-modules/zeromq {
inherit (pkgs) zeromq;
};
})