Commit d7d4c518 authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

octavePackages: remove broken packages

Remove fem-fenics, level-set, parallel, sparsersb, tisean, vibes, and
vrml packages which have been marked broken since NixOS 24.05 and
remain unfixed.

Per RFC 180, packages broken for a full release cycle are subject
to removal.

https://github.com/NixOS/rfcs/pull/180
parent 1590e217
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
{
  stdenv,
  pkgs,
  config,
  lib,
  fetchurl,
  gfortran,
@@ -207,6 +208,7 @@ stdenv.mkDerivation (finalAttrs: {
    octavePackages = import ../../../top-level/octave-packages.nix {
      pkgs = allPkgs;
      inherit
        config
        lib
        stdenv
        fetchurl
+0 −36
Original line number Diff line number Diff line
{
  buildOctavePackage,
  lib,
  fetchurl,
  dolfin,
  ffc,
  pkg-config,
}:

buildOctavePackage rec {
  pname = "fem-fenics";
  version = "0.0.5";

  src = fetchurl {
    url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
    sha256 = "1xd80nnkschldvrqx0wvrg3fzbf8sck8bvq24phr5x49xs7b8x78";
  };

  nativeBuildInputs = [
    pkg-config
  ];

  propagatedBuildInputs = [
    dolfin
    ffc
  ];

  meta = {
    homepage = "https://gnu-octave.github.io/packages/fem-fenics/";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ KarlJoad ];
    description = "Package for the resolution of partial differential equations based on fenics";
    # Lots of compilation errors for newer octave versions and syntax errors
    broken = true;
  };
}
+0 −57
Original line number Diff line number Diff line
{
  buildOctavePackage,
  lib,
  fetchgit,
  automake,
  autoconf,
  autoconf-archive,
  parallel,
}:

buildOctavePackage rec {
  pname = "level-set";
  version = "2019-04-13";

  src = fetchgit {
    url = "https://git.code.sf.net/p/octave/${pname}";
    rev = "dbf46228a7582eef4fe5470fd00bc5b421dd33a5";
    sha256 = "14qwa4j24m2j7njw8gbagkgmp040h6k0h7kyrrzgb9y0jm087qkl";
    fetchSubmodules = false;
  };

  # The monstrosity of a regex below is to ensure that only error() calls are
  # corrected to have a %s format specifier. However, logic_error() also
  # exists, (a simple regex also matches that), but logic_error() doesn't
  # require a format specifier. So, this regex was born to handle that...
  postPatch = ''
    substituteInPlace build.sh --replace "level-set-0.3.1" "${pname}-${version}" \
                               --replace "\`pwd\`" '/build'
    sed -i -E 's#[^[:graph:]]error \(# error \(\"%s\", #g' src/*.cpp
  '';

  nativeBuildInputs = [
    automake
    autoconf
    autoconf-archive
  ];

  requiredOctavePackages = [
    parallel
  ];

  preBuild = ''
    mkdir -p $out
    source ./build.sh
    cd -
  '';

  meta = {
    name = "Level Set";
    homepage = "https://gnu-octave.github.io/packages/level-set/";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ KarlJoad ];
    description = "Routines for calculating the time-evolution of the level-set equation and extracting geometric information from the level-set function";
    # Got broke with octave 8.x update, and wasn't updated since 2019
    broken = true;
  };
}
+0 −43
Original line number Diff line number Diff line
{
  buildOctavePackage,
  lib,
  fetchurl,
  struct,
  gnutls,
  pkg-config,
}:

buildOctavePackage rec {
  pname = "parallel";
  version = "4.0.1";

  src = fetchurl {
    url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
    sha256 = "1h8vw2r42393px6dk10y3lhpxl168r9d197f9whz6lbk2rg571pa";
  };
  patches = [
    ../database/c_verror.patch
  ];

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    gnutls
  ];

  requiredOctavePackages = [
    struct
  ];

  meta = {
    homepage = "https://gnu-octave.github.io/packages/parallel/";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ KarlJoad ];
    description = "Parallel execution package";
    # Although upstream has added an identical patch to that of ../database, it
    # still won't build with octave>8.1
    broken = true;
  };
}
+0 −29
Original line number Diff line number Diff line
{
  buildOctavePackage,
  lib,
  fetchurl,
  librsb,
}:

buildOctavePackage rec {
  pname = "sparsersb";
  version = "1.0.9";

  src = fetchurl {
    url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
    sha256 = "0jyy2m7wylzyjqj9n6mjizhj0ccq8xnxm2g6pdlrmncxq1401khd";
  };

  propagatedBuildInputs = [
    librsb
  ];

  meta = {
    homepage = "https://gnu-octave.github.io/packages/sparsersb/";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ KarlJoad ];
    description = "Interface to the librsb package implementing the RSB sparse matrix format for fast shared-memory sparse matrix computations";
    # Broken since octave>8.x
    broken = true;
  };
}
Loading