2019-08-13 16:48:02 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, git, swig, lua, itk, tcl, tk }:
|
2018-05-09 20:50:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 16:48:02 +00:00
|
|
|
pname = "simpleitk";
|
|
|
|
version = "1.2.2";
|
2018-05-09 20:50:01 +00:00
|
|
|
|
2019-08-13 16:48:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SimpleITK";
|
|
|
|
repo = "SimpleITK";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1cgq9cxxplv6bkm2zfvcc0lgyh5zw1hbry30k1429n9737wnadaw";
|
2018-05-09 20:50:01 +00: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 16:48:02 +00:00
|
|
|
platforms = platforms.linux;
|
2018-05-09 20:50:01 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|