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
49 lines
931 B
Nix
49 lines
931 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
swig,
|
|
lua,
|
|
elastix,
|
|
itk,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "simpleitk";
|
|
version = "2.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SimpleITK";
|
|
repo = "SimpleITK";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-6jEPO8pM5EDVFgeq8hSpJ0pWn2/Iph4Xcs2hs41kxAI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
swig
|
|
];
|
|
buildInputs = [
|
|
elastix
|
|
lua
|
|
itk
|
|
];
|
|
|
|
# 2.0.0: linker error building examples
|
|
cmakeFlags = [
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
"-DBUILD_SHARED_LIBS=OFF"
|
|
"-DSimpleITK_USE_ELASTIX=ON"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.simpleitk.org";
|
|
description = "Simplified interface to ITK";
|
|
changelog = "https://github.com/SimpleITK/SimpleITK/releases/tag/v${finalAttrs.version}";
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
platforms = platforms.linux;
|
|
license = licenses.asl20;
|
|
};
|
|
})
|