summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-01-07 22:02:01 +0400
committerMichael Raskin <7c6f434c@mail.ru>2014-01-07 22:02:44 +0400
commit37e6b8ec80935108ae8ab9b35f99c2587aeb32ca (patch)
tree3f1abc564b94ca8ee71be0182ea6412e65c6c555
parente01af040ed970371d0e0342dc89a9a5525fdef52 (diff)
downloadnixpkgs-37e6b8ec80935108ae8ab9b35f99c2587aeb32ca.tar
nixpkgs-37e6b8ec80935108ae8ab9b35f99c2587aeb32ca.tar.gz
nixpkgs-37e6b8ec80935108ae8ab9b35f99c2587aeb32ca.tar.bz2
nixpkgs-37e6b8ec80935108ae8ab9b35f99c2587aeb32ca.tar.lz
nixpkgs-37e6b8ec80935108ae8ab9b35f99c2587aeb32ca.tar.xz
nixpkgs-37e6b8ec80935108ae8ab9b35f99c2587aeb32ca.tar.zst
nixpkgs-37e6b8ec80935108ae8ab9b35f99c2587aeb32ca.zip
A larger Octave build with GUI
-rw-r--r--pkgs/development/interpreters/octave/default.nix21
-rw-r--r--pkgs/top-level/all-packages.nix11
2 files changed, 27 insertions, 5 deletions
diff --git a/pkgs/development/interpreters/octave/default.nix b/pkgs/development/interpreters/octave/default.nix
index ca9a00eab1c..eb7e925561c 100644
--- a/pkgs/development/interpreters/octave/default.nix
+++ b/pkgs/development/interpreters/octave/default.nix
@@ -1,6 +1,9 @@
 {stdenv, fetchurl, gfortran, readline, ncurses, perl, flex, texinfo, qhull,
-libX11, graphicsmagick, pcre, liblapack, texLive, pkgconfig, mesa, fltk,
-fftw, fftwSinglePrec, zlib, curl, qrupdate }:
+libX11, graphicsmagick, pcre, liblapack, pkgconfig, mesa, fltk,
+fftw, fftwSinglePrec, zlib, curl, qrupdate
+, qt ? null, ghostscript ? null, llvm ? null, hdf5 ? null,glpk ? null
+, suitesparse ? null, gnuplot ? null, openjdk ? null, python ? null
+}:
 
 let
   version = "3.8.0";
@@ -14,7 +17,17 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ gfortran readline ncurses perl flex texinfo qhull libX11
     graphicsmagick pcre liblapack pkgconfig mesa fltk zlib curl
-    fftw fftwSinglePrec qrupdate ];
+    fftw fftwSinglePrec qrupdate ]
+    ++ (stdenv.lib.optional (qt != null) qt)
+    ++ (stdenv.lib.optional (ghostscript != null) ghostscript)
+    ++ (stdenv.lib.optional (llvm != null) llvm)
+    ++ (stdenv.lib.optional (hdf5 != null) hdf5)
+    ++ (stdenv.lib.optional (glpk != null) glpk)
+    ++ (stdenv.lib.optional (suitesparse != null) suitesparse)
+    ++ (stdenv.lib.optional (openjdk != null) openjdk)
+    ++ (stdenv.lib.optional (gnuplot != null) gnuplot)
+    ++ (stdenv.lib.optional (python != null) python)
+    ;
 
   # there is a mysterious sh: command not found
   doCheck = false;
@@ -39,7 +52,7 @@ stdenv.mkDerivation rec {
   meta = {
     homepage = http://octave.org/;
     license = "GPLv3+";
-    maintainers = with stdenv.lib.maintainers; [viric];
+    maintainers = with stdenv.lib.maintainers; [viric raskin];
     platforms = with stdenv.lib.platforms; linux;
   };
 }
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e3806622cdb..92668c9fff4 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3274,7 +3274,16 @@ let
 
   octave = callPackage ../development/interpreters/octave {
     fltk = fltk13;
-  };
+    qt = null;
+    ghostscript = null;
+    llvm = null;
+    hdf5 = null;
+    glpk = null;
+    suitesparse = null;
+    openjdk = null;
+    gnuplot = null;
+  };
+  octaveFull = (lowPrio (callPackage ../development/interpreters/octave { }));
 
   # mercurial (hg) bleeding edge version
   octaveHG = callPackage ../development/interpreters/octave/hg.nix { };