2020-09-23 19:51:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, swig, lua, itk }:
|
2018-05-09 21:50:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 17:48:02 +01:00
|
|
|
pname = "simpleitk";
|
2020-09-23 19:51:15 +01:00
|
|
|
version = "2.0.0";
|
2018-05-09 21:50:01 +01:00
|
|
|
|
2019-08-13 17:48:02 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SimpleITK";
|
|
|
|
repo = "SimpleITK";
|
|
|
|
rev = "v${version}";
|
2020-09-23 19:51:15 +01:00
|
|
|
sha256 = "1nf3cl3ywqg04446xhkb97kcashrgibsihxn2sqrs81i9d0rw5kn";
|
2018-05-09 21:50:01 +01:00
|
|
|
};
|
|
|
|
|
2020-09-23 19:51:15 +01:00
|
|
|
nativeBuildInputs = [ cmake swig ];
|
|
|
|
buildInputs = [ lua itk ];
|
2018-05-09 21:50:01 +01:00
|
|
|
|
2020-09-23 19:51:15 +01:00
|
|
|
# 2.0.0: linker error building examples
|
|
|
|
cmakeFlags = [ "-DBUILD_EXAMPLES=OFF" "-DBUILD_SHARED_LIBS=ON" ];
|
2018-05-09 21:50:01 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-09-23 19:51:15 +01:00
|
|
|
homepage = "https://www.simpleitk.org";
|
2018-05-09 21:50:01 +01:00
|
|
|
description = "Simplified interface to ITK";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
2019-08-13 17:48:02 +01:00
|
|
|
platforms = platforms.linux;
|
2018-05-09 21:50:01 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|