vtk: add vtk-dicom module (#435382)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
newScope,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
pkg-config,
|
||||
|
||||
@@ -46,6 +47,7 @@
|
||||
libgeotiff,
|
||||
laszip_2,
|
||||
gdal,
|
||||
gdcm,
|
||||
pdal,
|
||||
alembic,
|
||||
imath,
|
||||
@@ -136,6 +138,19 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = sourceSha256;
|
||||
};
|
||||
|
||||
postPatch =
|
||||
let
|
||||
vtk-dicom = fetchFromGitHub {
|
||||
owner = "dgobbi";
|
||||
repo = "vtk-dicom";
|
||||
tag = "v0.8.17";
|
||||
hash = "sha256-1lI2qsV4gymWqjeouEHZ5FRlmlh9vimH7J5rzA+eOds=";
|
||||
};
|
||||
in
|
||||
''
|
||||
cp --no-preserve=mode -r ${vtk-dicom} ./Remote/vtkDICOM
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config # required for finding MySQl
|
||||
@@ -153,6 +168,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libgeotiff
|
||||
laszip_2
|
||||
gdal
|
||||
(gdcm.override { enableVTK = false; })
|
||||
pdal
|
||||
alembic
|
||||
imath
|
||||
@@ -289,6 +305,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# mpiSupport
|
||||
(lib.cmakeBool "VTK_USE_MPI" mpiSupport)
|
||||
(vtkBool "VTK_GROUP_ENABLE_MPI" mpiSupport)
|
||||
|
||||
# Remote module options
|
||||
(lib.cmakeBool "USE_GDCM" true) # for vtkDicom
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "vtk" ];
|
||||
|
||||
Reference in New Issue
Block a user