Unverified Commit 6a200f80 authored by patka's avatar patka
Browse files

suitesparse_4_2: drop

We no longer have dependencies on this old version of suitesparse from 2019.
parent b35a6817
Loading
Loading
Loading
Loading
+0 −57
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchurl,
  gfortran,
  blas,
  lapack,
}:

let
  int_t = if blas.isILP64 then "int64_t" else "int32_t";
in
stdenv.mkDerivation rec {
  version = "4.2.1";
  pname = "suitesparse";
  src = fetchurl {
    url = "http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-${version}.tar.gz";
    sha256 = "1ga69637x7kdkiy3w3lq9dvva7220bdangv2lch2wx1hpi83h0p8";
  };

  nativeBuildInputs = [ gfortran ];
  buildInputs = [
    blas
    lapack
  ];

  preConfigure = ''
    mkdir -p $out/lib
    mkdir -p $out/include

    sed -i "SuiteSparse_config/SuiteSparse_config.mk" \
        -e 's/METIS .*$/METIS =/' \
        -e 's/METIS_PATH .*$/METIS_PATH =/' \
        -e '/CHOLMOD_CONFIG/ s/$/-DNPARTITION -DLONGBLAS=${int_t}/' \
        -e '/UMFPACK_CONFIG/ s/$/-DLONGBLAS=${int_t}/'
  '';

  makeFlags = [
    "PREFIX=\"$(out)\""
    "INSTALL_LIB=$(out)/lib"
    "INSTALL_INCLUDE=$(out)/include"
    "BLAS=-lblas"
    "LAPACK=-llapack"
  ];

  meta = with lib; {
    homepage = "http://faculty.cse.tamu.edu/davis/suitesparse.html";
    description = "Suite of sparse matrix algorithms";
    license = with licenses; [
      bsd2
      gpl2Plus
      lgpl21Plus
    ];
    maintainers = with maintainers; [ ttuegel ];
    platforms = with platforms; unix;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -1770,6 +1770,7 @@ mapAliases {
  strelka = throw "strelka depends on Python 2.6+, and does not support Python 3."; # Added 2025-03-17
  subberthehut = throw "'subberthehut' has been removed as it was unmaintained upstream"; # Added 2025-05-17
  suidChroot = throw "'suidChroot' has been dropped as it was unmaintained, failed to build and had questionable security considerations"; # Added 2025-05-17
  suitesparse_4_2 = throw "'suitesparse_4_2' has been removed as it was unmaintained upstream"; # Added 2025-05-17
  suitesparse_4_4 = throw "'suitesparse_4_4' has been removed as it was unmaintained upstream"; # Added 2025-05-17
  sumneko-lua-language-server = lua-language-server; # Added 2023-02-07
  sumokoin = throw "sumokoin has been removed as it was abandoned upstream"; # Added 2024-11-23
+0 −1
Original line number Diff line number Diff line
@@ -15708,7 +15708,6 @@ with pkgs;
  sageWithDoc = sage.override { withDoc = true; };
  suitesparse_4_2 = callPackage ../development/libraries/science/math/suitesparse/4.2.nix { };
  suitesparse_5_3 = callPackage ../development/libraries/science/math/suitesparse {
    inherit (llvmPackages) openmp;
  };
+0 −2
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ let
    "octopus"
    "superlu"
    "suitesparse_5_3"
    "suitesparse_4_2"
    "scs"
    "scalapack"
    "petsc"
@@ -95,7 +94,6 @@ let
    "rspamd"
    "sundials"
    "suitesparse_5_3"
    "suitesparse_4_2"
    "petsc"
    "cholmod-extra"
    "arpack"