2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, swig4
|
|
|
|
, lua
|
|
|
|
, elastix
|
|
|
|
, itk
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "simpleitk";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SimpleITK";
|
|
|
|
repo = "SimpleITK";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
|
|
hash = "sha256-JmZUlIdcCQ9yEqxoUwRaxvr/Q7xZm41QA3mtDtoSdyI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
swig4
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
elastix
|
|
|
|
lua
|
|
|
|
itk
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
# 2.0.0: linker error building examples
|
2023-11-16 04:20:00 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
|
|
"-DBUILD_SHARED_LIBS=OFF"
|
|
|
|
"-DSimpleITK_USE_ELASTIX=ON"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 12:50:04 +00:00
|
|
|
homepage = "https://www.simpleitk.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simplified interface to ITK";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/SimpleITK/SimpleITK/releases/tag/v${finalAttrs.version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
})
|