1 # This file contains the GNU Octave add-on packages set.
2 # Each attribute is an Octave library.
3 # Expressions for the Octave libraries are supposed to be in `pkgs/development/octave-modules/<name>/default.nix`.
5 # When contributing a new package, if that package has a dependency on another
6 # octave package, then you DO NOT need to explicitly list it as such when
7 # performing the callPackage. It will be passed implicitly.
8 # In addition, try to use the same dependencies as the ones octave needs, which
9 # should ensure greater compatibility between Octave itself and its packages.
11 # Like python-packages.nix, packages from top-level.nix are not in the scope
12 # of the `callPackage` used for packages here. So, when we do need packages
13 # from outside, we can `inherit` them from `pkgs`.
24 makeScope newScope (self:
26 callPackage = self.callPackage;
28 buildOctavePackage = callPackage ../development/interpreters/octave/build-octave-package.nix {
31 inherit computeRequiredOctavePackages;
34 # Given a list of required Octave package derivations, get a list of
35 # ALL required Octave packages needed for the ones specified to run.
36 computeRequiredOctavePackages = drvs: let
37 # Check whether a derivation is an octave package
38 hasOctavePackage = drv: drv?isOctavePackage;
39 packages = filter hasOctavePackage drvs;
40 in unique (packages ++ concatLists (catAttrs "requiredOctavePackages" packages));
44 inherit callPackage buildOctavePackage computeRequiredOctavePackages;
46 inherit (callPackage ../development/interpreters/octave/hooks { })
47 writeRequiredOctavePackagesHook;
49 arduino = callPackage ../development/octave-modules/arduino {
50 inherit (pkgs) arduino-core-unwrapped;
53 audio = callPackage ../development/octave-modules/audio { };
55 bim = callPackage ../development/octave-modules/bim { };
57 bsltl = callPackage ../development/octave-modules/bsltl { };
59 cgi = callPackage ../development/octave-modules/cgi { };
61 communications = callPackage ../development/octave-modules/communications { };
63 control = callPackage ../development/octave-modules/control { };
65 data-smoothing = callPackage ../development/octave-modules/data-smoothing { };
67 database = callPackage ../development/octave-modules/database { };
69 dataframe = callPackage ../development/octave-modules/dataframe { };
71 dicom = callPackage ../development/octave-modules/dicom { };
73 divand = callPackage ../development/octave-modules/divand { };
75 doctest = callPackage ../development/octave-modules/doctest { };
77 econometrics = callPackage ../development/octave-modules/econometrics { };
79 fem-fenics = callPackage ../development/octave-modules/fem-fenics {
80 # PLACEHOLDER until KarlJoad gets dolfin packaged.
85 fits = callPackage ../development/octave-modules/fits { };
87 financial = callPackage ../development/octave-modules/financial { };
89 fpl = callPackage ../development/octave-modules/fpl { };
91 fuzzy-logic-toolkit = callPackage ../development/octave-modules/fuzzy-logic-toolkit { };
93 ga = callPackage ../development/octave-modules/ga { };
95 general = callPackage ../development/octave-modules/general {
99 generate_html = callPackage ../development/octave-modules/generate_html { };
101 geometry = callPackage ../development/octave-modules/geometry { };
103 gsl = callPackage ../development/octave-modules/gsl {
107 image = callPackage ../development/octave-modules/image { };
109 image-acquisition = callPackage ../development/octave-modules/image-acquisition { };
111 instrument-control = callPackage ../development/octave-modules/instrument-control { };
113 io = callPackage ../development/octave-modules/io {
114 inherit (octave) enableJava;
117 interval = callPackage ../development/octave-modules/interval { };
119 level-set = callPackage ../development/octave-modules/level-set { };
121 linear-algebra = callPackage ../development/octave-modules/linear-algebra { };
123 lssa = callPackage ../development/octave-modules/lssa { };
125 ltfat = callPackage ../development/octave-modules/ltfat {
126 inherit (octave) fftw fftwSinglePrec portaudio jdk;
127 inherit (pkgs) fftwFloat fftwLongDouble;
130 mapping = callPackage ../development/octave-modules/mapping { };
132 matgeom = callPackage ../development/octave-modules/matgeom { };
134 miscellaneous = callPackage ../development/octave-modules/miscellaneous { };
136 msh = callPackage ../development/octave-modules/msh {
137 # PLACEHOLDER until KarlJoad gets dolfin packaged.
141 mvn = callPackage ../development/octave-modules/mvn { };
143 nan = callPackage ../development/octave-modules/nan { };
145 ncarray = callPackage ../development/octave-modules/ncarray { };
147 netcdf = callPackage ../development/octave-modules/netcdf {
148 inherit (pkgs) netcdf;
151 nurbs = callPackage ../development/octave-modules/nurbs { };
153 ocl = callPackage ../development/octave-modules/ocl { };
155 octclip = callPackage ../development/octave-modules/octclip { };
157 octproj = callPackage ../development/octave-modules/octproj { };
159 optics = callPackage ../development/octave-modules/optics { };
161 optim = callPackage ../development/octave-modules/optim { };
163 optiminterp = callPackage ../development/octave-modules/optiminterp { };
165 parallel = callPackage ../development/octave-modules/parallel { };
167 quaternion = callPackage ../development/octave-modules/quaternion { };
169 queueing = callPackage ../development/octave-modules/queueing { };
171 signal = callPackage ../development/octave-modules/signal { };
173 sockets = callPackage ../development/octave-modules/sockets { };
175 sparsersb = callPackage ../development/octave-modules/sparsersb { };
177 stk = callPackage ../development/octave-modules/stk { };
179 splines = callPackage ../development/octave-modules/splines { };
181 statistics = callPackage ../development/octave-modules/statistics { };
183 strings = callPackage ../development/octave-modules/strings { };
185 struct = callPackage ../development/octave-modules/struct { };
187 symbolic = callPackage ../development/octave-modules/symbolic {
188 inherit (octave) python;
191 tisean = callPackage ../development/octave-modules/tisean { };
193 tsa = callPackage ../development/octave-modules/tsa { };
195 vibes = callPackage ../development/octave-modules/vibes {
197 # TODO: Need to package vibes:
198 # https://github.com/ENSTABretagneRobotics/VIBES
201 video = callPackage ../development/octave-modules/video { };
203 vrml = callPackage ../development/octave-modules/vrml {
207 windows = callPackage ../development/octave-modules/windows { };
209 zeromq = callPackage ../development/octave-modules/zeromq {
210 inherit (pkgs) zeromq autoreconfHook;