Commit 9c90eb4e authored by Ben Darwin's avatar Ben Darwin
Browse files

simpleitk: enable SimpleElastix module

Note that building SimpleITK with shared libraries had to be disabled
when building against Elastix (which doesn't support building with
shared libraries for some reason) due to a linker error.
However, the Python package correctly builds the needed shared objects.
parent b66c1ca1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
, cmake
, swig4
, lua
, elastix
, itk
}:

@@ -23,6 +24,7 @@ stdenv.mkDerivation (finalAttrs: {
    swig4
  ];
  buildInputs = [
    elastix
    lua
    itk
  ];
@@ -30,7 +32,8 @@ stdenv.mkDerivation (finalAttrs: {
  # 2.0.0: linker error building examples
  cmakeFlags = [
    "-DBUILD_EXAMPLES=OFF"
    "-DBUILD_SHARED_LIBS=ON"
    "-DBUILD_SHARED_LIBS=OFF"
    "-DSimpleITK_USE_ELASTIX=ON"
  ];

  meta = with lib; {
+12 −2
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
, fetchFromGitHub
, cmake
, swig4
, elastix
, itk
, numpy
, simpleitk
@@ -20,8 +21,17 @@ buildPythonPackage rec {
    make
  '';

  nativeBuildInputs = [ cmake swig4 scikit-build ];
  propagatedBuildInputs = [ itk simpleitk numpy ];
  nativeBuildInputs = [
    cmake
    swig4
    scikit-build
  ];
  propagatedBuildInputs = [
    elastix
    itk
    simpleitk
    numpy
  ];

  pythonImportsCheck = [ "SimpleITK" ];
}