2018-05-09 20:50:01 +00:00
|
|
|
{ stdenv, fetchurl, cmake, git, swig, lua, itk }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "simpleitk";
|
2018-05-20 20:07:07 +00:00
|
|
|
version = "1.1.0";
|
2018-05-09 20:50:01 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://sourceforge.net/projects/${pname}/files/SimpleITK/${version}/Source/SimpleITK-${version}.tar.gz";
|
2018-05-20 20:07:07 +00:00
|
|
|
sha256 = "01y8s73mw4yabqir2f8qp5zc1c0y6szi18rr4zwgsxz62g4drzgm";
|
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'" ];
|
|
|
|
|
|
|
|
checkPhase = "ctest";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.simpleitk.org;
|
|
|
|
description = "Simplified interface to ITK";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|