Unverified Commit 7243f973 authored by Michael Daniels's avatar Michael Daniels
Browse files

cmtk: drop

Broken since September 2025 (so it's broken on stable too).
No user complaints about this, which implies that this package has no users.
Seemingly lightly maintained upstream as well
(one release in the last 10 years or so).
parent 31fc0b92
Loading
Loading
Loading
Loading

pkgs/by-name/cm/cmtk/package.nix

deleted100644 → 0
+0 −59
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  bzip2,
  cmake,
  fetchurl,
  fftw,
  llvmPackages,
  zlib,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "cmtk";
  version = "3.3.2";

  src = fetchurl {
    name = "cmtk-source.tar.gz";
    url = "https://www.nitrc.org/frs/download.php/13188/CMTK-${finalAttrs.version}-Source.tar.gz//?i_agree=1&download_now=1";
    hash = "sha256-iE164NCOSOypZLLZfZy9RTyrS+YnY9ECqfb4QhlsMS4=";
  };

  postPatch = ''
    substituteInPlace apps/vtkxform.cxx --replace-fail \
      "float xyzFloat[3] = { xyz[0], xyz[1], xyz[2] };" \
      "float xyzFloat[3] = { (float)xyz[0], (float)xyz[1], (float)xyz[2] };"
  '';

  nativeBuildInputs = [ cmake ];

  buildInputs = [
    bzip2
    fftw
    zlib
  ]
  ++ lib.optionals stdenv.cc.isClang [
    llvmPackages.openmp
  ];

  cmakeFlags = [
    (lib.cmakeFeature "CMAKE_CXX_STANDARD" "14")
  ]
  ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
    (lib.cmakeFeature "CMAKE_CXX_FLAGS" "-Dfinite=isfinite")
  ];

  meta = {
    description = "Computational Morphometry Toolkit";
    mainProgram = "cmtk";
    longDescription = ''
      A software toolkit for computational morphometry of
      biomedical images, CMTK comprises a set of command line tools and a
      back-end general-purpose library for processing and I/O
    '';
    maintainers = [ ];
    platforms = lib.platforms.all;
    license = lib.licenses.gpl3Plus;
    homepage = "https://www.nitrc.org/projects/cmtk/";
  };
})
+1 −0
Original line number Diff line number Diff line
@@ -505,6 +505,7 @@ mapAliases {
  cloudlogoffline = throw "cloudlogoffline has been removed"; # Added 2025-05-18
  clucene_core = warnAlias "'clucene_core' has been renamed to 'clucene-core'" clucene-core; # Added 2026-01-12
  clucene_core_2 = warnAlias "'clucene_core_2' has been renamed to 'clucene-core_2'" clucene-core_2; # Added 2026-01-12
  cmtk = throw "'cmtk' has been dropped due to being broken since September 2025, with no complaints by any users of the package."; # Added 2026-04-05
  coc-sumneko-lua = throw "'coc-sumneko-lua' has been removed due to unmaintained and broken package. 'lua_ls' can be used as a replacement"; # Added 2026-02-04
  cockroachdb-bin = throw "'cockroachdb-bin' has been renamed to/replaced by 'cockroachdb'"; # Converted to throw 2025-10-27
  code-browser-gtk2 = throw "'code-browser-gtk2' has been removed, as it was broken since 22.11"; # Added 2025-08-22