Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions pkgs/development/libraries/vtk/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
newScope,
stdenv,
fetchurl,
fetchFromGitHub,
cmake,
pkg-config,

Expand Down Expand Up @@ -46,6 +47,7 @@
libgeotiff,
laszip_2,
gdal,
gdcm,
pdal,
alembic,
imath,
Expand Down Expand Up @@ -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
Expand All @@ -153,6 +168,7 @@ stdenv.mkDerivation (finalAttrs: {
libgeotiff
laszip_2
gdal
(gdcm.override { enableVTK = false; })
pdal
alembic
imath
Expand Down Expand Up @@ -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" ];
Expand Down
Loading