2021-12-23 19:15:09 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, swig4, lua, itk }:
|
2018-05-09 20:50:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 16:48:02 +00:00
|
|
|
pname = "simpleitk";
|
2022-08-02 03:40:32 +00:00
|
|
|
version = "2.1.1.2";
|
2018-05-09 20:50:01 +00:00
|
|
|
|
2022-04-26 12:27:10 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2019-08-13 16:48:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SimpleITK";
|
|
|
|
repo = "SimpleITK";
|
|
|
|
rev = "v${version}";
|
2022-08-02 03:40:32 +00:00
|
|
|
sha256 = "sha256-sokJXOz6p+0eTeps5Tt24pjB3u+L1s6mDlaWN7K9m3g=";
|
2018-05-09 20:50:01 +00:00
|
|
|
};
|
|
|
|
|
2021-12-23 19:15:09 +00:00
|
|
|
nativeBuildInputs = [ cmake swig4 ];
|
2020-09-23 18:51:15 +00:00
|
|
|
buildInputs = [ lua itk ];
|
2018-05-09 20:50:01 +00:00
|
|
|
|
2020-09-23 18:51:15 +00:00
|
|
|
# 2.0.0: linker error building examples
|
|
|
|
cmakeFlags = [ "-DBUILD_EXAMPLES=OFF" "-DBUILD_SHARED_LIBS=ON" ];
|
2018-05-09 20:50:01 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-09-23 18:51:15 +00:00
|
|
|
homepage = "https://www.simpleitk.org";
|
2018-05-09 20:50:01 +00:00
|
|
|
description = "Simplified interface to ITK";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
2019-08-13 16:48:02 +00:00
|
|
|
platforms = platforms.linux;
|
2018-05-09 20:50:01 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|