Unverified Commit 2cb0d312 authored by K900's avatar K900 Committed by GitHub
Browse files

hmetis: drop (#404376)

parents 2969e204 128697f0
Loading
Loading
Loading
Loading
+0 −51
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchurl,
  ghostscript,
}:

stdenv.mkDerivation rec {
  pname = "hmetis";
  version = "1.5";

  src = fetchurl {
    url = "http://glaros.dtc.umn.edu/gkhome/fetch/sw/hmetis/hmetis-${version}-linux.tar.gz";
    sha256 = "e835a098c046e9c26cecb8addfea4d18ff25214e49585ffd87038e72819be7e1";
  };

  nativeBuildInputs = [ ghostscript ];

  binaryFiles = "hmetis khmetis shmetis";

  patchPhase = ''
    for binaryfile in $binaryFiles; do
      patchelf \
        --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 \
        --set-rpath ${stdenv.cc.libc}/lib \
        $binaryfile
    done
  '';

  buildPhase = ''
    gs -sOutputFile=manual.pdf -sDEVICE=pdfwrite -SNOPAUSE -dBATCH manual.ps
  '';

  installPhase = ''
    mkdir -p $out/bin $out/share/doc/hmetis $out/lib
    mv $binaryFiles $out/bin
    mv manual.pdf $out/share/doc/hmetis
    mv libhmetis.a $out/lib
  '';

  meta = with lib; {
    description = "hMETIS is a set of programs for partitioning hypergraphs";
    homepage = "http://glaros.dtc.umn.edu/gkhome/metis/hmetis/overview";
    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
    license = licenses.unfree;
    platforms = [
      "i686-linux"
      "x86_64-linux"
    ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -834,6 +834,7 @@ mapAliases {
  HentaiAtHome = hentai-at-home; # Added 2024-06-12
  hll2390dw-cups = throw "The hll2390dw-cups package was dropped since it was unmaintained."; # Added 2024-06-21
  hoarder = throw "'hoarder' has been renamed to 'karakeep'"; # Added 2025-04-21
  hmetis = throw "'hmetis' has been removed as it was unmaintained and the upstream was unavailable"; # Added 2025-05-05
  hop-cli = throw "hop-cli has been removed as the service has been shut-down"; # Added 2024-08-13
  hpp-fcl = coal; # Added 2024-11-15
  ht-rust = throw "'ht-rust' has been renamed to/replaced by 'xh'"; # Converted to throw 2024-10-17
+0 −2
Original line number Diff line number Diff line
@@ -3172,8 +3172,6 @@ with pkgs;
  gemstash = callPackage ../development/tools/gemstash { };
  hmetis = pkgsi686Linux.callPackage ../applications/science/math/hmetis { };
  libbtbb = callPackage ../development/libraries/libbtbb { };
  lpd8editor = libsForQt5.callPackage ../applications/audio/lpd8editor { };