2019-08-13 17:48:02 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, git, swig, lua, itk, 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 ];
|
|
|
|
buildInputs = [ lua itk ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_CXX_FLAGS='-Wno-attributes'" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.simpleitk.org;
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|