Unverified Commit 1a46589e authored by misuzu's avatar misuzu Committed by GitHub
Browse files

{itk_5_2, python312Packages.itk}: unbreak by disabling RTK cmake module (#366994)

parents d169a1ef 42df0b49
Loading
Loading
Loading
Loading
+20 −14
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
  zlib,
  Cocoa,
  enablePython ? false,
  enableRtk ? true,
}:

let
@@ -116,6 +117,8 @@ stdenv.mkDerivation {
      "-DModule_MGHIO=ON"
      "-DModule_AdaptiveDenoising=ON"
      "-DModule_GenericLabelInterpolator=ON"
    ]
    ++ lib.optionals enableRtk [
      "-DModule_RTK=ON"
    ]
    ++ lib.optionals enablePython [
@@ -153,7 +156,8 @@ stdenv.mkDerivation {
  # These deps were propagated from VTK 9 in https://github.com/NixOS/nixpkgs/pull/206935,
  # so we simply propagate them again from ITK.
  # This admittedly is a hack and seems like an issue with VTK 9's CMake configuration.
  propagatedBuildInputs = [
  propagatedBuildInputs =
    [
      # The dependencies we've un-vendored from ITK, such as GDCM, must be propagated,
      # otherwise other software built against ITK fails to configure since ITK headers
      # refer to these previously vendored libraries:
@@ -166,7 +170,9 @@ stdenv.mkDerivation {
      libpng
      libtiff
      zlib
  ] ++ lib.optionals withVtk vtk.propagatedBuildInputs ++ lib.optionals enablePython [ numpy ];
    ]
    ++ lib.optionals withVtk vtk.propagatedBuildInputs
    ++ lib.optionals enablePython [ numpy ];

  postInstall = lib.optionalString enablePython ''
    substitute \
+1 −0
Original line number Diff line number Diff line
@@ -9493,6 +9493,7 @@ with pkgs;
  itk_5_2 = callPackage ../development/libraries/itk/5.2.x.nix {
    inherit (darwin.apple_sdk.frameworks) Cocoa;
    enableRtk = false;
  };
  itk_5 = callPackage ../development/libraries/itk/5.x.nix {
+1 −0
Original line number Diff line number Diff line
@@ -6491,6 +6491,7 @@ self: super: with self; {
  itk = toPythonModule (pkgs.itk.override {
    inherit python numpy;
    enablePython = true;
    enableRtk = false;
  });