@@ -0,0 +1,29 @@
1+{ stdenv, fetchurl, cmake, git, swig, lua, itk }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "simpleitk";
5+ version = "1.0.0";
6+ name = "${pname}-${version}";
7+
8+ src = fetchurl {
9+ url = "https://sourceforge.net/projects/${pname}/files/SimpleITK/${version}/Source/SimpleITK-${version}.tar.gz";
10+ sha256 = "0554j0zp314zhs8isfg31fi6gvsl7xq3xjyyxkx1b1mjkn5qx673";
11+ };
12+
13+ nativeBuildInputs = [ cmake git swig ];
14+ buildInputs = [ lua itk ];
15+
16+ cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_CXX_FLAGS='-Wno-attributes'" ];
17+
18+ checkPhase = "ctest";
19+
20+ enableParallelBuilding = true;
21+
22+ meta = with stdenv.lib; {
23+ homepage = http://www.simpleitk.org;
24+ description = "Simplified interface to ITK";
25+ maintainers = with maintainers; [ bcdarwin ];
26+ platforms = platforms.unix;
27+ license = licenses.asl20;
28+ };
29+}