diff --git a/pkgs/development/interpreters/octave/default.nix b/pkgs/development/interpreters/octave/default.nix index 2e926e16dc6e..b32d15b2a1f9 100644 --- a/pkgs/development/interpreters/octave/default.nix +++ b/pkgs/development/interpreters/octave/default.nix @@ -1,7 +1,6 @@ { stdenv , fetchurl , gfortran -, readline , ncurses , perl , flex @@ -31,18 +30,23 @@ , glpk ? null , suitesparse ? null , gnuplot ? null +# - Include support for GNU readline: +, enableReadline ? true +, readline ? null +# - Build Java interface: +, enableJava ? true , jdk ? null , python ? null , overridePlatforms ? null , sundials_2 ? null -# Qt / GUI is disabled by default +# - Build Octave Qt GUI: , enableQt ? false , qtbase ? null , qtsvg ? null , qtscript ? null , qscintilla ? null , qttools ? null -# JIT is disabled by default +# - JIT compiler for loops: , enableJIT ? false , llvm ? null }: @@ -98,7 +102,7 @@ stdenv.mkDerivation rec { ++ (stdenv.lib.optional (hdf5 != null) hdf5) ++ (stdenv.lib.optional (glpk != null) glpk) ++ (stdenv.lib.optional (suitesparse != null) suitesparse) - ++ (stdenv.lib.optional (jdk != null) jdk) + ++ (stdenv.lib.optional (enableJava) jdk) ++ (stdenv.lib.optional (sundials_2 != null) sundials_2) ++ (stdenv.lib.optional (gnuplot != null) gnuplot) ++ (stdenv.lib.optional (python != null) python) @@ -128,10 +132,10 @@ stdenv.mkDerivation rec { F77_INTEGER_8_FLAG = if openblas.blas64 then "-fdefault-integer-8" else ""; configureFlags = [ - "--enable-readline" "--with-blas=openblas" "--with-lapack=openblas" ] + ++ stdenv.lib.optionals enableReadline [ "--enable-readline" ] ++ stdenv.lib.optionals openblas.blas64 [ "--enable-64" ] ++ stdenv.lib.optionals stdenv.isDarwin [ "--with-x=no" ] ++ stdenv.lib.optionals enableQt [ "--with-qt=5" ] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 97cb0d5e22dd..446fb437561d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9220,58 +9220,15 @@ in git = gitMinimal; }; - # Build summary for this flavor - # - Build Octave Qt GUI: no (missing:QtCore QtGui QtNetwork QtHelp QtXml) - # - JIT compiler for loops: no - # - Build Java interface: yes - # - Build static libraries: no - # - Build shared libraries: yes - # - Dynamic Linking API: dlopen - # - Include support for GNU readline: yes - # - 64-bit array dims and indexing: yes - # - 64-bit BLAS array dims and indexing: yes - # - OpenMP SMP multithreading: yes - # - Truncate intermediate FP results: yes - # - Build cross tools: no - # - Build docs: yes octave = callPackage ../development/interpreters/octave { python = python3; openblas = if stdenv.isDarwin then openblasCompat else openblas; }; - # Build summary for this flavor - # - Build Octave Qt GUI: no (missing:QtCore QtGui QtNetwork QtHelp QtXml) - # - JIT compiler for loops: yes - # - Build Java interface: yes - # - Build static libraries: no - # - Build shared libraries: yes - # - Dynamic Linking API: dlopen - # - Include support for GNU readline: yes - # - 64-bit array dims and indexing: yes - # - 64-bit BLAS array dims and indexing: yes - # - OpenMP SMP multithreading: yes - # - Truncate intermediate FP results: yes - # - Build cross tools: no - # - Build docs: yes octave-jit = callPackage ../development/interpreters/octave { python = python3; openblas = if stdenv.isDarwin then openblasCompat else openblas; enableJIT = true; }; - # Build summary for this flavor - # - Build Octave Qt GUI: yes - # - JIT compiler for loops: no - # - Build Java interface: yes - # - Build static libraries: no - # - Build shared libraries: yes - # - Dynamic Linking API: dlopen - # - Include support for GNU readline: yes - # - 64-bit array dims and indexing: yes - # - 64-bit BLAS array dims and indexing: yes - # - OpenMP SMP multithreading: yes - # - Truncate intermediate FP results: yes - # - Build cross tools: no - # - Build docs: yes - # Build summary for this flavor octaveFull = (lowPrio (libsForQt512.callPackage ../development/interpreters/octave { python = python3; openblas = if stdenv.isDarwin then openblasCompat else openblas;