Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
vtk,
|
|
gdcm,
|
|
testers,
|
|
vtk-dicom,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "vtk-dicom";
|
|
version = "0.8.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dgobbi";
|
|
repo = "vtk-dicom";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-1lI2qsV4gymWqjeouEHZ5FRlmlh9vimH7J5rzA+eOds=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
vtk
|
|
gdcm
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "USE_GDCM" true)
|
|
(lib.cmakeBool "DICOM_VERSIONED_INSTALL" false)
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
|
(lib.cmakeFeature "CMAKE_INSTALL_BINDIR" "bin")
|
|
(lib.cmakeFeature "CMAKE_INSTALL_LIBDIR" "lib")
|
|
(lib.cmakeFeature "CMAKE_INSTALL_INCLUDEDIR" "include")
|
|
]
|
|
++ lib.optional finalAttrs.finalPackage.doCheck [
|
|
# vtkBool does not accept TRUE, we have to use STRING "ON"
|
|
(lib.cmakeFeature "BUILD_TESTING" "ON")
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru.tests = {
|
|
python = vtk-dicom.override {
|
|
vtk = vtk.override { pythonSupport = true; };
|
|
};
|
|
|
|
cmake-config = testers.hasCmakeConfigModules {
|
|
moduleNames = [ "DICOM" ];
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "DICOM for VTK";
|
|
homepage = "https://github.com/dgobbi/vtk-dicom";
|
|
changelog = "https://github.com/dgobbi/vtk-dicom/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
qbisi
|
|
bcdarwin
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|