mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
48 lines
931 B
Nix
48 lines
931 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, swig
|
|
, lua
|
|
, elastix
|
|
, itk
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "simpleitk";
|
|
version = "2.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SimpleITK";
|
|
repo = "SimpleITK";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-/FV5NAM9DJ54Vg6/5yn9DCybry+a8lS3fQ3HWLOeOTA=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|