2020-04-27 19:42:17 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, git, swig, lua, itk4, tcl, tk }:
|
2018-05-09 21:50:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 17:48:02 +01:00
|
|
|
pname = "simpleitk";
|
2019-11-29 15:14:01 +00:00
|
|
|
version = "1.2.4";
|
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}";
|
2019-11-29 15:14:01 +00:00
|
|
|
sha256 = "0dvf2407z9n6lczm0l5vzcvpw6r6z1wzrs2gk3dqjrgynq6952qr";
|
2018-05-09 21:50:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake git swig ];
|
2020-04-27 19:42:17 +01:00
|
|
|
buildInputs = [ lua itk4 ];
|
2018-05-09 21:50:01 +01:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_CXX_FLAGS='-Wno-attributes'" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://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;
|
|
|
|
};
|
|
|
|
}
|