about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2020-02-09 19:21:16 +0100
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-02-09 19:24:18 +0100
commitd969e702309fabc5630108a7548876358af79b2c (patch)
tree149d415bd5133fcd5868a7b95b3198fd978d71b5 /pkgs
parentdb8434a6945561fc94284f1e8fc5c2baac298f9b (diff)
downloadnixlib-d969e702309fabc5630108a7548876358af79b2c.tar
nixlib-d969e702309fabc5630108a7548876358af79b2c.tar.gz
nixlib-d969e702309fabc5630108a7548876358af79b2c.tar.bz2
nixlib-d969e702309fabc5630108a7548876358af79b2c.tar.lz
nixlib-d969e702309fabc5630108a7548876358af79b2c.tar.xz
nixlib-d969e702309fabc5630108a7548876358af79b2c.tar.zst
nixlib-d969e702309fabc5630108a7548876358af79b2c.zip
octaveHg: drop
This package is broken and unmaintained (no updates since 2017) and lags
behind octave.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/interpreters/octave/hg.nix75
-rw-r--r--pkgs/top-level/all-packages.nix35
-rw-r--r--pkgs/top-level/pure-packages.nix4
3 files changed, 14 insertions, 100 deletions
diff --git a/pkgs/development/interpreters/octave/hg.nix b/pkgs/development/interpreters/octave/hg.nix
deleted file mode 100644
index a34834af48cb..000000000000
--- a/pkgs/development/interpreters/octave/hg.nix
+++ /dev/null
@@ -1,75 +0,0 @@
-args@{ stdenv, openblas, ghostscript ? null, texinfo
-
-     , # These are arguments that shouldn't be passed to the
-       # octave package.
-       texlive, tex ? texlive.combined.scheme-small
-     , epstool, pstoedit, transfig
-     , lib, fetchhg, callPackage
-     , autoconf, automake, libtool
-     , bison, librsvg, icoutils, gperf
-
-     , # These are options that can be passed in addition to the ones
-       # octave usually takes.
-       # - rev is the HG revision.  Use "tip" for the bleeding edge.
-       # - docs can be set to false to skip building documentation.
-       rev ? "23269", docs ? true
-
-     , # All remaining arguments will be passed to the octave package.
-       ...
-     }:
-
-with stdenv.lib;
-let
-  octaveArgs = removeAttrs args
-    [ "texlive" "tex"
-      "epstool" "pstoedit" "transfig"
-      "lib" "fetchhg" "callPackage"
-      "autoconf" "automake" "libtool"
-      "bison" "librsvg" "icoutils" "gperf"
-      "rev" "docs"
-    ];
-  octave = callPackage ./default.nix octaveArgs;
-
-  # List of hashes for known HG revisions.
-  sha256s = {
-    "23269" = "87f560e873ad1454fdbcdd8aca65f9f0b1e605bdc00aebbdc4f9d862ca72ff1d";
-  };
-
-in lib.overrideDerivation octave (attrs: rec {
-  version = "4.3.0pre${rev}";
-  name = "octave-${version}";
-
-  src = fetchhg {
-    url = http://www.octave.org/hg/octave;
-    inherit rev;
-
-    sha256 =
-      if builtins.hasAttr rev sha256s
-      then builtins.getAttr rev sha256s
-      else null;
-
-    fetchSubrepos = true;
-  };
-
-  # Octave's test for including this flag seems to be broken in 4.3.
-  F77_INTEGER_8_FLAG = optional openblas.blas64 "-fdefault-integer-8";
-
-  # This enables texinfo to find the files it needs.
-  TEXINPUTS = ".:build-aux:${texinfo}/texmf-dist/tex/generic/epsf:";
-
-  disableDocs = !docs || ghostscript == null;
-
-  nativeBuildInputs = attrs.nativeBuildInputs
-    ++ [ autoconf automake libtool bison librsvg icoutils gperf ]
-    ++ optionals (!disableDocs) [ tex epstool pstoedit transfig ];
-
-  # Run bootstrap before any other patches, as other patches may refer
-  # to files that are generated by the bootstrap.
-  prePatch = ''
-    patchShebangs bootstrap
-    ./bootstrap
-  '' + attrs.prePatch;
-
-  configureFlags = attrs.configureFlags ++
-    optional disableDocs "--disable-docs";
-})
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d462acbdfede..361b30a187f7 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -9186,29 +9186,18 @@ in
     git = gitMinimal;
   };
 
-  inherit (
-    let
-      defaultOctaveOptions = {
-        qt = null;
-        qscintilla = null;
-        ghostscript = null;
-        graphicsmagick = null;
-        llvm = null;
-        hdf5 = null;
-        glpk = null;
-        suitesparse = null;
-        jdk = null;
-        openblas = if stdenv.isDarwin then openblasCompat else openblas;
-      };
-
-      hgOctaveOptions =
-        (removeAttrs defaultOctaveOptions ["ghostscript"]) // {
-          overridePlatforms = stdenv.lib.platforms.none;
-        };
-    in {
-      octave = callPackage ../development/interpreters/octave defaultOctaveOptions;
-      octaveHg = lowPrio (callPackage ../development/interpreters/octave/hg.nix hgOctaveOptions);
-  }) octave octaveHg;
+  octave = callPackage ../development/interpreters/octave {
+    qt = null;
+    qscintilla = null;
+    ghostscript = null;
+    graphicsmagick = null;
+    llvm = null;
+    hdf5 = null;
+    glpk = null;
+    suitesparse = null;
+    jdk = null;
+    openblas = if stdenv.isDarwin then openblasCompat else openblas;
+  };
 
   octaveFull = (lowPrio (octave.override {
     qt = qt4;
diff --git a/pkgs/top-level/pure-packages.nix b/pkgs/top-level/pure-packages.nix
index a16008880328..005e09cc003e 100644
--- a/pkgs/top-level/pure-packages.nix
+++ b/pkgs/top-level/pure-packages.nix
@@ -1,4 +1,4 @@
-{ callPackage, octaveHg }:
+{ callPackage }:
 
 rec {
   audio = callPackage ../development/pure-modules/audio { };
@@ -19,7 +19,7 @@ rec {
   lv2 = callPackage ../development/pure-modules/lv2 { };
   midi = callPackage ../development/pure-modules/midi { };
   mpfr = callPackage ../development/pure-modules/mpfr { };
-  octave = callPackage ../development/pure-modules/octave { octave = octaveHg; };
+  octave = callPackage ../development/pure-modules/octave { };
   odbc = callPackage ../development/pure-modules/odbc { };
   pandoc = callPackage ../development/pure-modules/pandoc { };
   rational = callPackage ../development/pure-modules/rational { };